ALTER TABLE COMMENT
デスクリプション
このステートメントは、既存のTableのコメントを変更するために使用されます。この操作は同期的であり、コマンドは完了を示すために戻り値を返します。
grammar:
ALTER TABLE [database.]table alter_clause;
- Tableコメントを変更
grammar:
MODIFY COMMENT "new table comment";
- カラムコメントを変更する
文法:
MODIFY COLUMN col1 COMMENT "new column comment";
例
- table1のコメントをtable1_commentに変更する
ALTER TABLE table1 MODIFY COMMENT "table1_comment";
- table1のcol1のコメントをtable1_commentに変更する
ALTER TABLE table1 MODIFY COLUMN col1 COMMENT "table1_col1_comment";
キーワード
ALTER, TABLE, COMMENT, ALTER TABLE