Example: Using the TITLE Phrase

Teradata Vantage™ Data Types and Literals

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

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