2009年7月21日 星期二
Retrieving Auto Generated Key from DB
Set oConn.Execute("INSERT INTO yourTable (field1, field2) VALUES ('Hello','World');")
Set oRs = oConn.Execute("SELECT @@IDENTITY FROM yourTable")
iAutoGeneratedID = oRs(0)
----
Set rs = dbCon.Execute(strSQL)
Dim newID
newID = rs.Fields("NewID").value
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言