1、添加字段
alter table tablename add email varchar(30) not null;
alter table tablename add id int unsigned not null auto_increment primary key;
2、修改字段
alter table tablename modify colname varchar(10);//修改字段数据类型
alter table tablename change colname newcolname varchar(20);//修改字段名
3、删除字段
alter table tablename drop colname;
转载于:https://www.cnblogs.com/baalhuo/p/5762101.html