16.10 - Example: Creating a Table with an ARRAY Column - Teradata Database

Teradata Database SQL Data Types and Literals

prodname
Teradata Database
vrm_release
16.10
created_date
June 2017
category
Programming Reference
featnum
B035-1143-161K

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);