站点图标 起风网

怎么删除mysql的列

表建立了突然发现多了列,需要删除。那么操作步骤如下

删除列

基本形式: alter table 表名 drop 列名称;

示例:

删除 birthday 列: alter table students drop birthday;

退出移动版