日期:2014-05-18  浏览次数:20657 次

SQLserver 中怎样用 T-SQL语句插入新一列???求解?
SQLserver 中已建好的表 怎样用 T-SQL语句插入新一列???

  怎样用 T-SQL语句设置主建自动增长???求解

------解决方案--------------------
SQL code
use tempdb
go 
create table test
(name char(10));
go
--插入一列ID,
alter table test add id int identity(1,1)

------解决方案--------------------
借用一下楼上的
插入新一列:
SQL code


--插入一列ID,
alter table test add id int