Example: SHOW METHOD - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Published
January 2021
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
ncd1596241368722.ditamap
dita:ditavalPath
hoy1596145193032.ditaval
dita:id
B035-1144
lifecycle
previous
Product Category
Teradata Vantage™

The following examples show valid cases of SHOW METHOD.

  • This example reports the SQL create text for a method that has the specific method name polygon_mbr.
         SHOW SPECIFIC METHOD SYSUDTLIB.polygon_mbr;
  • This example reports the SQL create text for a method that has the name polygon_mbr. Note that the method has no parameters, so no parameter data type list is specified.
         SHOW METHOD SYSUDTLIB.area() FOR circle;
  • This example reports the SQL create text for a method that has the name in_state and is associated with the UDT named circle. To be distinguished from another method definition on circle named in_state, the specification includes the parameter data type list for the method.
         SHOW METHOD in_state(CHAR(2)) FOR address;