sqlserver中插入值后,马上得到自动编号的值......

类别:数据库 点击:0 评论:0 推荐:

Set oRs = oCn.Execute("SET NOCOUNT ON;INSERT INTO Products (ProductName) VALUES ('Chalk');SELECT IDENTITY") 

lProductID = oRs(0)

本文地址:http://com.8s8s.com/it/it19759.htm