4
CREATE [TEMPORARY] TABLE [IF NOT EXISTS] table_name
5
(create_definition, ...)
10
CREATE [TEMPORARY] TABLE [IF NOT EXISTS] table_name
11
[(create_definition, ...)]
17
CREATE [TEMPORARY] TABLE [IF NOT EXISTS] table_name
18
LIKE different_table_name
22
column_name column_definition
23
| [CONSTRAINT [symbol] ] PRIMARY KEY [index_type]
24
(index_column_name, ...)
25
| INDEX [index_name] (index_column_name, ...)
26
(index_column_name, ...)
27
| [CONSTRAINT [symbol] ] UNIQUE [INDEX]
28
(index_column_name, ...)
29
| [CONSTRAINT [symbol] ] FOREIGN KEY [index_name] (index_column_name, ...)
34
data_type [NOT NULL | NULL] [DEFAULT default_value]
35
[AUTO_INCREMENT] [UNIQUE [KEY] | [PRIMARY] KEY]
37
[reference_definition]
42
| DOUBLE[(length, decimals)]
43
| DECIMAL[(length[,decimals])]
47
| VARCHAR(length) [COLLATE collation_name]
50
| TEXT [BINARY] [COLLATE collation_name]
51
| ENUM(value1, value2, value3, ...) [COLLATE collation_name]
54
RESTRICT | CASCADE | SET NULL | NO ACTION
57
engine_option [[,] engine_option] ...