Example: Displaying Multidimensional ARRAY Parameters - 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™

Suppose you create a multidimensional ARRAY named seismic_cube. The following example shows how ARRAY parameters are indicated in a HELP FUNCTION report. If seismic_cube were a one-dimensional ARRAY type, that would be indicated with A1 rather than AN for the Type attribute.

     HELP FUNCTION  SYSUDTLIB.3d_array;

           Parameter Name P1
                     Type I
                  Comment ?
                 Nullable N
                   Format -(10)9
               Max Length 4
     Decimal Total Digits ?
Decimal Fractional Digits ?
              Table/View? F
                Char Type ?
           Parameter Type I
                 UDT Name ?
           Parameter Name RETURN0
                     Type AN
                  Comment ?
                 Nullable N
                   Format ?
               Max Length ?
     Decimal Total Digits ?
Decimal Fractional Digits ?
              Table/View? F
                Char Type ?
           Parameter Type O
                 UDT Name seismic_cube