-- alter add 增加列
alter table tong.dbo.tong_mo
add MOname nvarchar(25) not null,
Ordername nvarchar(25) not null
-- alter drop column 删除列
alter table tong.dbo.tong_mo
drop column Ordername,MOname
-- alter column 修改列(MSSQL不能多列修改)
alter table tong.dbo.tong_mo
alter column moname nvarchar(10) not null
alter table tong.dbo.tong_mo
alter column Ordername nvarchar(10) not null
本文来源:https://www.2haoxitong.net/k/doc/bdae6260d0d233d4b04e6926.html
文档为doc格式