您的位置:首页 > 数据库 > MySQL

修改mysql列字段

2020-02-17 05:18 169 查看

alter table 表名  add[column]字段名 数据类型[列属性][位置];

1、alter table student 

add column id int

first;

2、alter table student  

  add column sexxxx varchar(20)

after age;

  • 点赞
  • 收藏
  • 分享
  • 文章举报
云风帆 发布了19 篇原创文章 · 获赞 0 · 访问量 649 私信 关注
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: