Example: Creating a Table with an ARRAY Column - Teradata Vantage NewSQL Engine - 16.20

Teradata Vantageā„¢ Data Types and Literals

prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1143-162K

Consider the following 1-D ARRAY type:

CREATE TYPE phonenumbers_ary AS CHAR(10) ARRAY[5] DEFAULT NULL;

The following statement creates a table with a column named ephone that has a data type of phonenumbers_ary, which is a 1-D ARRAY type.

CREATE TABLE my_table (eno INTEGER, ephone phonenumbers_ary);