修改某一列,列名不改变,用modify
ALTER table `order` MODIFY `order_fee` decimal(14,4) DEFAULT NULL;
修改某一列,列名要改变,用change
ALTER TABLE `apps`
CHANGE COLUMN `at_p1` `at_p2` decimal(8,4) NULL DEFAULT NULL COMMENT 'test111' AFTER `status_id`;
增加一列
ALTER TABLE `apps`
ADD COLUMN `op_date` datetime(0) NULL COMMENT '创建时间' AFTER `op_user`;
来源:CSDN
作者:lsx6766
链接:https://blog.csdn.net/lsx6766/article/details/103684774