日期:2014-05-18 浏览次数:20534 次
create table tb(id int identity,col varchar(20)) SELECT NAME FROM SYS.COLUMNS WHERE OBJECT_ID=OBJECT_ID('TB') AND IS_IDENTITY=1 /* NAME -------------------------------------------------------- id (1 行受影响) */ GO DROP TABLE TB