17.10 - Create Permanent Table - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1144-171K
Language
English (United States)

This statement defines a table with a primary index on the datetime column.

CREATE MULTISET TABLE riverflow_csv_t (
  datetime VARCHAR(20),
  site_no CHAR(8),
  Flow Float,
  GageHeight Float,
  GageHeight2 Float,
  Precipitation Float
) PRIMARY INDEX (datetime);