CREATE TABLE Syntax ( Object File System Form) | VantageCloud Lake - CREATE TABLE Syntax (Object File System Table Form) - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905
CREATE MULTISET TABLE [ database_name. | user_name. ] table_name,
  STORAGE = TD_OFSSTORAGE 
  [ , MAP = map_name [COLOCATE USING colocation_name ] ]
  ( column_specification [,...] )
  [ ORDER BY ( [ NO ORDER BY | order_column_name [,...]  ] )
  [UNIQUE] PRIMARY INDEX [index_name] ( index_column_name [,...] ) [ NO PRIMARY INDEX ]
  [ PARTITION BY COLUMN | NOT PARTITIONED ] [;]
column_specification
column_name data_type [ column_data_type_attribute ]
column_data_type_attribute
{ { UPPERCASE | UC } |
  [NOT] { CASESPECIFIC | CS } |
  FORMAT quotestring |
  TITLE quotestring |
  NAMED name |
  DEFAULT { number | USER | DATE | TIME | NULL } |
  WITH DEFAULT |
  CHARACTER SET server_character_set |
  [NOT] NULL |
  [NOT] AUTO COLUMN |
  compression_attribute |
  column_constraint_attribute
}
compression_attribute
{ NO COMPRESS |

  COMPRESS [ constant | ( { constant | NULL } [,...] ) ] |

  COMPRESS USING compress_UDF_name DECOMPRESS
    USING decompress_UDF_name
}
column_constraint_attribute
[ CONSTRAINT constraint_name ]
  CHECK ( boolean_condition ) references
  [ row_level_security_constraint_column_name [,...] ] CONSTRAINT
references
 REFERENCES [ WITH NO CHECK OPTION ] referenced_table_name
   [ ( referenced_column_name [,...] ) ]