删除某一列
: alter table user_info drop column apply_time;

新增字段
:
alter table user_detail add operate_id int(11) NOT NULL AUTO_INCREMENT primary key;
注意: mysql只能有一个自增的列,而且一般来说该列都是主键


删除某一列
: alter table user_info drop column apply_time;
新增字段
:
alter table user_detail add operate_id int(11) NOT NULL AUTO_INCREMENT primary key;
注意: mysql只能有一个自增的列,而且一般来说该列都是主键
本文标题:mysql删除某一列,新增字段
本文链接:https://www.haomeiwen.com/subject/hsddmctx.html
网友评论