17.10 - Example: Displaying Multidimensional ARRAY Parameters - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1144-171K
Language
English (United States)

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