alter table test_data modify column test_desc int comment 'xxxx';
3 修改现有表,加上解释
ALTER TABLE test_data COMMENT='存放测试用例相关数据';
4查看整个表的结构
SHOW CREATE TABLE test_data;
#查看表的注释
SELECT table_name,table_comment FROM information_schema.tables WHERE table_schema = 'test' AND table_name ='test_data';
5 查看列的解释
SHOW FULL COLUMNS FROM test_data;
SELECT column_name, column_comment FROM information_schema.columns WHERE table_schema ='test' AND table_name = 'test_data';