在调用 JetSetColumns() 然后 JetUpdate() 我如何检索任何新分配的自动增量值的值?
问问题
277 次
2 回答
1
当您调用 JetUpdate() 时,第三个参数是“书签”。JetUpdate() 完成后,您可以使用
JetGotoBookmark() - http://msdn.microsoft.com/en-us/library/ms683554(EXCHG.10).aspx
于 2010-06-21T18:21:47.353 回答
0
Note that it is also possible to retrieve the autoincrement value before calling JetUpdate, because the value is assigned when JetUpdate is called. You need to use the JET_bitRetrieveCopy option with JetRetrieveColumn.
For an example in managed code see the "How Do I Retrieve an Auto-Increment Column Value?" section on this page.
于 2010-06-26T21:44:42.410 回答