getLastSerial is a method of the SapDB_Result class (sdb.sql module).
If the system has generated one or more values for a key column of the SERIAL type using an INSERT statement, you can use this method to display the last of these values. This is useful, for example, to maintain FOREIGN KEY dependencies in other SQL statements.
Syntax
getLastSerial ()
Last value of the SERIAL type in the result set
If the SQL statement returned no values of the SERIAL type: None