Merge pull request #22548 from taosdata/doc/3.0/TD-25685

add doc for column comment
This commit is contained in:
dapan1121 2023-08-24 13:54:31 +08:00 committed by GitHub
commit 99b192c730
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 5 deletions

View File

@ -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 ...

View File

@ -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 ...