修改表中列

修改列名

alter table 表名 rename column 旧列名 to 新列名;

修改列类型

alter table 表名 modify (列名varchar(255));

删除表某一列

alter table 表名 drop column 列名

给表增加一列

alter table 表名 add 列名 类型 default 值 < not null>;

猜你喜欢

转载自www.cnblogs.com/jwdd/p/10027772.html