本文共 296 字,大约阅读时间需要 1 分钟。
我的sql:
ALTER TABLE a add COLUMN `custom_id` bigint not null default 0 after `is_delete` COMMENT '自定义格式id' ;
发现显示comment关键字报错:’,’ or PARTITION expected, got ‘COMMENT’
把after 关键字放到commen关键字后面:
ALTER TABLE a add COLUMN `custom_id` bigint not null default 0 COMMENT '自定义格式id' after `is_delete`;
转载地址:http://cnywb.baihongyu.com/