UltraLite Static C++ User's Guide
C++ API Reference
ULConnection class
ul_u_big GetLastIdentity( )
Returns the most recent identity value used. This function is equivalent to the following SQL statement:
SELECT @@identity
The function is particularly useful in the context of global autoincrement columns.
The last identity value.
Determining the most recently assigned value
Declaring default global autoincrement columns