摘要:
以前自动增长一般都用@@IDENTITY取今天出了个错误,用了一下2005的output CREATE TABLE #A ( Id Int ) INSERT INTO C ( CC )output inserted.Id INTO #A VALUES ( 'CC' ) DECLARE @ThisId int SELECT @ThisId= id FROM #A DROP TABLE #A另外insert into table1 values(colvalue1,colvalue2) select SCOPE_IDENTITY() 如果table1上没有触发器啥的也... 阅读全文
posted @ 2009-02-11 18:02
宏宇
阅读(304)
评论(0)
推荐(0)
浙公网安备 33010602011771号