首页 > 数据库技术 > 详细

Sql 修改表结构

时间:2019-11-21 12:42:22      阅读:69      评论:0      收藏:0      [点我收藏+]

添加字段

alter table 表名 add 字段名 nvarchar(100) not null

修改字段

alter table 表名 alter column 字段名 int not null

删除字段

alter table 表名 drop column 字段名 not null

Sql 修改表结构

原文:https://www.cnblogs.com/zhouyg2017/p/11904520.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!