1.更改名:exec sp_rename...A.更改表名
例:将table1改为table2
exec sp_rename 'table1','table2'
B.更改表中的列名
例:将table2中的id列改为idd
exec sp_rename 'table2.id','idd',['column']2.更改列的属性例:表table2中的列id为int型,现改为char型
alter table table2 alter column id char3.增加列A.例:在表table2中增加name列为char型
alter table table2 add name char(8)
B.例:在表table2中增加nob列为int型且设自增量为1,且不空
alter table table2 add nob int identity(1,1) not null4.删除列例:删除table2中的id列
alter table table2 drop column id