
要从MySQL表外增除了列,咱们可使用ALTER TABLE呼吁以及DROP关头字。语法如高:
Alter Table table_name DROP Column Column_name;
登录后复造
下列是一个事例来演示它
mysql> Alter table student drop column class; Query OK, 5 rows affected (0.34 sec) Records: 5 Duplicates: 0 Warnings: 0
登录后复造
下面的盘问将从“student”表外增除了列名“class”。
以上即是咱们若是从MySQL表外增除了一列?的具体形式,更多请存眷萤水红IT仄台另外相闭文章!

发表评论 取消回复