阅读背景:

在SQL Server中,执行Insert时是否可以获取记录的“id”?

来源:互联网 

In SQL Server 2005 I have an "id" field in a table that has the "Is Identity" property set to 'Yes'. So, when an Insert is executed on that table the "id" gets set automatically to the next incrementing integer. Is there an easy way when the Insert is executed to get what the "id" was set to without having to do a Select statement right after the Insert?In SQL Server 2005 I have an "id" field in a ta




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: