时间:2021-07-01 10:21:17 帮助过:6人阅读
ALTER TABLE member MODIFY COLUMN cpn_type TINYINT COMMENT ‘优惠券类型 1=现金券 2=满减券 3=加油券‘;
//在某个字段之后 新加字段
ALTER TABLE member ADD cpn_bn_handwork VARCHAR(50) COMMENT ‘优惠券编码 手工录入‘ AFTER cpn_bn;
//加上非空
ALTER TABLE member ADD cpn_relation_station TINYINT(1) NOT NULL DEFAULT 0 COMMENT ‘是否 关联加油站 0否 1是‘;
mysql 修改,添加字段语句
标签:优惠 tiny modify sql def member color efault after