4
A CREATE statement in SQL creates an object inside of Drizzle. One of
5
the most common CREATE commands is the CREATE TABLE command.
9
CREATE [TEMPORARY] TABLE [IF NOT EXISTS] table_name
10
(create_definition, ...)
12
REPLICATE=[TRUE|FALSE]
18
CREATE [TEMPORARY] TABLE [IF NOT EXISTS] table_name
19
[(create_definition, ...)]
22
REPLICATE=[TRUE|FALSE]
28
CREATE [TEMPORARY] TABLE [IF NOT EXISTS] table_name
29
LIKE different_table_name
31
REPLICATE=[TRUE|FALSE]
38
column_name column_definition
39
[CONSTRAINT [symbol] ] PRIMARY KEY [index_type]
40
(index_column_name, ...)
41
INDEX [index_name] (index_column_name, ...)
42
(index_column_name, ...)
43
[CONSTRAINT [symbol] ] UNIQUE [INDEX]
44
(index_column_name, ...)
45
[CONSTRAINT [symbol] ] FOREIGN KEY [index_name] (index_column_name, ...)
54
data_type [NOT NULL | NULL] [DEFAULT default_value]
55
[AUTO_INCREMENT] [UNIQUE [KEY] | [PRIMARY] KEY]
57
[reference_definition]
64
* DOUBLE[(length, decimals)]
65
* DECIMAL[(length[,decimals])]
69
* VARCHAR(length) [COLLATE collation_name]
72
* TEXT [BINARY] [COLLATE collation_name]
73
* ENUM(value1, value2, value3, ...) [COLLATE collation_name]
78
RESTRICT | CASCADE | SET NULL | NO ACTION
83
engine_option [[,] engine_option] ...
94
Specify whether or not a TABLE should be replicated.
96
REPLICATE=[TRUE|FALSE]