Example: HELP TYPE with No Options for a One-Dimensional Array - 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 either of the following equivalent one-dimensional ARRAY/VARRAY types, the first using Teradata format and the second using Oracle-compatible format.

     CREATE TYPE phonenumbers_ary AS 
     CHARACTER(10) ARRAY[5];
     CREATE TYPE phonenumbers_ary AS 
     VARRAY(5) OF CHARACTER(10);

A HELP TYPE request for phonenumbers_ary returns the following information.

     HELP TYPE phonenumbers_ary;
      *** Help information returned. 19 rows.
      *** Total elapsed time was 1 second.
Name phonenumbers_ary
      Internal Type A1
      External Type CV
         Max Length                121
        Array (Y/N) Y
         Dimensions                  1
       Element Type CF
           UDT Name ?
        Array Scope [1:5]
       Total Digits     ?
  Fractional Digits    ?
       Contains LOB N
           Ordering F
  Ordering Category M
   Ordering Routine LOCAL
               Cast N
          Transform Y
             Method Y
          Char Type  ?