16.10 - Example: Using the TITLE Phrase - 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

The following example shows a simple use of the TITLE phrase.

   CREATE TABLE Charges,
   FALLBACK
    (EmpNo SMALLINT FORMAT '9(5)' TITLE 'Employee//Id' BETWEEN 10001 AND 32001 NOT NULL,
     Proj_Id CHAR(8) TITLE 'Project//  Id' NOT NULL,
     WkEnd DATE FORMAT 'YYYY/MM/DD' TITLE 'Week//Ending',
     Hours DECIMAL(4,1) FORMAT 'ZZ9.9' BETWEEN 0.5 AND 999.5)
   PRIMARY INDEX (EmpNo, Proj_Id)
   INDEX (Proj_Id);