previous is a method of the SapDB_ResultSet class (sdb.sql module). You can use this method to move the cursor to the previous data record in the result set.
Syntax
previous ()
Previous data record
If the result set is empty or if the beginning of the result set has been reached: None
Syntax
row = cursor.previous ()
The row variable contains the previous data record.
Example: Executing an SQL Statement and Navigating in the Result Set