查看注释:show full columns from TABLE_NAME;
或者:show create table TABLE_NAME;(这种方式可以查看该表以及列的注释)
修改表的注释:
alter table TABLE_NAME comment 'xxxx';
修改列的注释:
alter table TABLE_NAME modify COLUMN_NAME int not null comment 'xxxxx';
查看注释:show full columns from TABLE_NAME;
或者:show create table TABLE_NAME;(这种方式可以查看该表以及列的注释)
修改表的注释:
alter table TABLE_NAME comment 'xxxx';
修改列的注释:
alter table TABLE_NAME modify COLUMN_NAME int not null comment 'xxxxx';