![]() |
MySQL 9.5.0
Source Code Documentation
|
Top-level node for the CREATE TABLE statement. More...
#include <parse_tree_nodes.h>
Public Member Functions | |
| PT_create_table_stmt (const POS &pos, MEM_ROOT *mem_root, uint table_type, bool only_if_not_exists, Table_ident *table_name, const Mem_root_array< PT_table_element * > *opt_table_element_list, const Mem_root_array< PT_create_table_option * > *opt_create_table_options, PT_partition *opt_partitioning, On_duplicate on_duplicate, PT_query_expression_body *opt_query_expression, const POS &columns_end_pos=POS()) | |
| PT_create_table_stmt (const POS &pos, MEM_ROOT *mem_root, uint table_type, bool only_if_not_exists, Table_ident *table_name, Table_ident *opt_like_clause) | |
| Sql_cmd * | make_cmd (THD *thd) override |
Public Member Functions inherited from PT_table_ddl_stmt_base | |
| PT_table_ddl_stmt_base (const POS &pos, MEM_ROOT *mem_root) | |
| ~PT_table_ddl_stmt_base () override=0 | |
Public Member Functions inherited from Parse_tree_root | |
| virtual std::string | get_printable_parse_tree (THD *thd) |
Private Attributes | |
| unsigned int | table_type |
| bool | only_if_not_exists |
| Table_ident * | table_name |
| const Mem_root_array< PT_table_element * > * | opt_table_element_list |
| const Mem_root_array< PT_create_table_option * > * | opt_create_table_options |
| PT_partition * | opt_partitioning |
| On_duplicate | on_duplicate |
| PT_query_expression_body * | opt_query_expression |
| Table_ident * | opt_like_clause |
| POS | m_columns_end_pos |
| HA_CREATE_INFO | m_create_info |
Additional Inherited Members | |
Public Attributes inherited from Parse_tree_root | |
| POS | m_pos |
| Textual location of a token just parsed. More... | |
Protected Member Functions inherited from Parse_tree_root | |
| Parse_tree_root ()=default | |
| Parse_tree_root (const POS &pos) | |
| virtual | ~Parse_tree_root ()=default |
Protected Attributes inherited from PT_table_ddl_stmt_base | |
| Alter_info | m_alter_info |
Top-level node for the CREATE TABLE statement.
|
inline |
| pos | Position of this clause in the SQL statement. |
| mem_root | MEM_ROOT to use for allocation |
| table_type | TABLE_TYPE_NORMAL, TABLE_TYPE_TEMPORARY or TABLE_TYPE_EXTERNAL |
| only_if_not_exists | True if CREATE TABLE ... IF NOT EXISTS |
| table_name | CREATE TABLE ... <table name> |
| opt_table_element_list | NULL or a list of table column and constraint definitions. |
| opt_create_table_options | NULL or a list of table options. |
| opt_partitioning | NULL or the PARTITION BY clause. |
| on_duplicate | DUPLICATE, IGNORE or fail with an error on data duplication errors (relevant for CREATE TABLE ... SELECT statements). |
| opt_query_expression | NULL or the SELECT clause. |
| columns_end_pos | Position after column definitions end. Used for CREATE EXTERNAL TABLE rewriting. |
|
inline |
| pos | Position of this clause in the SQL statement. |
| mem_root | MEM_ROOT to use for allocation |
| table_type | TABLE_TYPE_NORMAL, TABLE_TYPE_TEMPORARY or TABLE_TYPE_EXTERNAL. |
| only_if_not_exists | True if CREATE TABLE ... IF NOT EXISTS. |
| table_name | CREATE TABLE ... <table name>. |
| opt_like_clause | NULL or the LIKE <table name> clause. |
Implements Parse_tree_root.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |