开发者

how to get AutoIncrement value after JetUpdate() in Extensible Storage Engine (JetBlue)

开发者 https://www.devze.com 2022-12-25 00:10 出处:网络
after calling JetSetCol开发者_运维技巧umns() and then JetUpdate() how do I retrieve the values for any freshly assigned autoincrement values?when you call JetUpdate() the third arg is a \'bookmark\'.O

after calling JetSetCol开发者_运维技巧umns() and then JetUpdate() how do I retrieve the values for any freshly assigned autoincrement values?


when you call JetUpdate() the third arg is a 'bookmark'. Once JetUpdate() completes you can seek to the bookmark using

JetGotoBookmark() - http://msdn.microsoft.com/en-us/library/ms683554(EXCHG.10).aspx


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号