Unless otherwise noted, every syntax element that is a name must follow the rules for naming database objects. See Object Names.
- MULTISET
- Table can have duplicate rows unless there are uniqueness constraints on any column or set of columns in the table definition.
- database_name
- user_name
- [Optional] Name of database or user to contain table, if different from current default database.
- table_name
- Name for the new table.
- STORAGE = TD_OFSSTORAGE
- Specifies that the table is in native object storage (an Object File System table).
- map_name
- [Optional] Existing contiguous or sparse map for the table (other than TD_DataDictonaryMap or TD_GlobalMap).
- colocation_name
- [Optional for sparse map, disallowed for contiguous map] Has no effect, because an Object File System table has no primary index or primary AMP index.
- NO ORDER BY
- [Optional] Specifies that the data in the objects being inserted into the new Object File System table are not to be sorted into columns. This is the default.
- ORDER BY order_column_name [,…]
- [Optional] Specifies the column or columns on which to sort the data in the objects being inserted into the new Object File System table.
- PRIMARY INDEX
- Specifies primary index definition. The primary index is used by the hashing algorithm to distribute data rows of table to AMPs during load to build data objects on hash bucket ranges. When PRIMARY INDEX clause is not specified, table is defaulted to NO PRIMARY INDEX.
- index_column_name
- Specifies a column in the column set that defines a partitioned primary index.
If you specify more than one column name, the index is created on the combined values of each column named.
- index_name
- Specifies the optional name for the index.
For information about naming database objects, see SQL Fundamentals.
- UNIQUE
- Specifices that the primary index is to be unique.
Any primary index can be defined to be unique with the exception that PI whose definition does not include all the ORDER BY columns, if any.
- NO PRIMARY INDEX
- [Optional] Specifies that the table has no primary index. This is the default.
- PARTITION BY COLUMN
- [Optional] Specifies that the table is partitioned by column (an Object File System columnar table). This is the default.
- NOT PARTITIONED
- [Optional] Use if you want the Object File System table to be in row format.
- AS_clause
- Source of column definitions for the new Object File System table, either the name of an existing table or a subquery on an existing table.