add doc for column comment
This commit is contained in:
parent
599e496ceb
commit
08fc2d1eb5
|
@ -91,12 +91,15 @@ ALTER TABLE [db_name.]tb_name alter_table_clause
|
||||||
|
|
||||||
alter_table_clause: {
|
alter_table_clause: {
|
||||||
alter_table_options
|
alter_table_options
|
||||||
| ADD COLUMN col_name column_type
|
| ADD COLUMN col_name column_definition
|
||||||
| DROP COLUMN col_name
|
| DROP COLUMN col_name
|
||||||
| MODIFY COLUMN col_name column_type
|
| MODIFY COLUMN col_name column_definition
|
||||||
| RENAME COLUMN old_col_name new_col_name
|
| RENAME COLUMN old_col_name new_col_name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
column_definition:
|
||||||
|
type_name [comment 'string_value']
|
||||||
|
|
||||||
alter_table_options:
|
alter_table_options:
|
||||||
alter_table_option ...
|
alter_table_option ...
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,10 @@ create_subtable_clause: {
|
||||||
}
|
}
|
||||||
|
|
||||||
create_definition:
|
create_definition:
|
||||||
col_name column_type
|
col_name column_definition
|
||||||
|
|
||||||
|
column_definition:
|
||||||
|
type_name [comment 'string_value']
|
||||||
|
|
||||||
table_options:
|
table_options:
|
||||||
table_option ...
|
table_option ...
|
||||||
|
@ -89,12 +92,15 @@ ALTER TABLE [db_name.]tb_name alter_table_clause
|
||||||
|
|
||||||
alter_table_clause: {
|
alter_table_clause: {
|
||||||
alter_table_options
|
alter_table_options
|
||||||
| ADD COLUMN col_name column_type
|
| ADD COLUMN col_name column_definition
|
||||||
| DROP COLUMN col_name
|
| DROP COLUMN col_name
|
||||||
| MODIFY COLUMN col_name column_type
|
| MODIFY COLUMN col_name column_definition
|
||||||
| RENAME COLUMN old_col_name new_col_name
|
| RENAME COLUMN old_col_name new_col_name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
column_definition:
|
||||||
|
type_name [comment 'string_value']
|
||||||
|
|
||||||
alter_table_options:
|
alter_table_options:
|
||||||
alter_table_option ...
|
alter_table_option ...
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue