UltraLite 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
Global autoincrement default column values