Revert "add doc for column comment"

This commit is contained in:
wangjiaming 2023-08-24 14:07:40 +08:00 committed by GitHub
parent d6019c1e36
commit 09cd6e59ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 14 deletions

View File

@ -91,15 +91,12 @@ 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_definition | ADD COLUMN col_name column_type
| DROP COLUMN col_name | DROP COLUMN col_name
| MODIFY COLUMN col_name column_definition | MODIFY COLUMN col_name column_type
| 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 ...

View File

@ -23,10 +23,7 @@ create_subtable_clause: {
} }
create_definition: create_definition:
col_name column_definition col_name column_type
column_definition:
type_name [comment 'string_value']
table_options: table_options:
table_option ... table_option ...
@ -92,15 +89,12 @@ 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_definition | ADD COLUMN col_name column_type
| DROP COLUMN col_name | DROP COLUMN col_name
| MODIFY COLUMN col_name column_definition | MODIFY COLUMN col_name column_type
| 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 ...