表字段添加、删除、修改

1.修改字段
ALTER TABLE 表名称 MODIFY 字段名称 字段类型 
[alter table dress_order modify order_buy_time  NULL DEFAULT CURRENT_TIMESTAMP COMMENT '下单时间']
 
2.添加字段
ALTER TABLE  表名称 ADD 字段名称 字段类型;
[alter table dress_order add order_pattern_normal varchar(200) NOT NULL DEFAULT '' COMMENT '成衣图案';]
 

3.删除字段
alter table `course_study_count` drop column fake_month_member_count

原文地址:https://www.cnblogs.com/lzs-888/p/5398437.html