加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > MySql教程 > 正文

MySQL删除列,添加列的sql语句

发布时间:2020-12-12 00:02:21 所属栏目:MySql教程 来源:网络整理
导读:已有表actor,且包含列last_name -- 删除列, 以下两种方式都可以alter table actor drop ?column last_name;alter table actor drop last_name;-- 添加列,必须指定列的类型alter table actor add last_name varchar(10);

已有表actor,且包含列last_name

-- 删除列, 以下两种方式都可以 alter table actor drop ?column last_name; alter table actor drop last_name; -- 添加列,必须指定列的类型 alter table actor add last_name varchar(10);

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读