1.更改表名
alter table 原表名 rename to 新表名; alter table emp rename to employee;
2.更改列名
alter table 表名 rename column 原列名 to 新列名; alter table emp rename column eno to enumber;
3.删除一列
alter table 表名 drop column 列名; alter table employee drop column age;
4.增加一列
alter table 表名 add column 列名 列的类型; alter table employee add column sex char(2);
原文:https://www.cnblogs.com/QQ1171492144/p/10649148.html