SET NOCOUNT ON ; insert into table1() values ( '' ); select @@IDENTITY ; SET NOCOUNT OFF ; 转载于:https://www.cnblogs.com/modou/articles/146262.html