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.00
Published
September 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
wgr1555383704548.ditamap
dita:ditavalPath
lze1555437562152.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