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

after calling JetSetColumns () and then JetUpdate (), how to get the values ​​for any auto-increment values ​​just assigned?

+4
source share
2 answers

when you call JetUpdate (), the third arg is a bookmark. After JetUpdate () completes, you can search for the bookmark with

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

+1
source

Note that you can also get the auto-increment value before by calling JetUpdate, since this value is assigned when JetUpdate is called. You need to use the JET_bitRetrieveCopy parameter with JetRetrieveColumn.

For an example in managed code, see "How to get the value of a column with auto-increment"? section on this page .

0
source

Source: https://habr.com/ru/post/1305621/


All Articles