last is a method of the SapDB_ResultSet class (sdb.sql module). You can use this method to position the cursor on the last data record in the result set.
Syntax
last ()
Last data record in the result set
If the result set is empty: None
Syntax
row = cursor.last ()
Example: Executing an SQL Statement and Navigating in the Result Set