Function documentationgetLastSerial Method (SapDB_Result Class) Locate this document in the navigation structure

 

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.

Features

Syntax Syntax

  1. getLastSerial ()
End of the code.
Result
  • Last value of the SERIAL type in the result set

  • If the SQL statement returned no values of the SERIAL type: None