create table UserTB
(
Id int identity primary key,
Name nvarchar(50) not null
)1).添加列
alter table UserTB add Age int2).删除列
alter table UserTB drop column Age3).修改列
alter table UserTB alter column Name nvarchar(20) not nullcreate table UserTB
(
Id int identity primary key,
Name nvarchar(50) not null
)alter table UserTB add Age intalter table UserTB drop column Agealter table UserTB alter column Name nvarchar(20) not null
评论(0)
暂无评论。