English

Which method is used to get the row-id of the last modified row?

Advertisements

Question

Which method is used to get the row-id of the last modified row?

Options

  • cursor.getrowid()

  • cursor.endrowid()

  • cursor.lastrowid()

  • cursor.exitrowid()

MCQ
Advertisements

Solution

cursor.lastrowid()

Explanation:

This read-only property returns the value generated for an AUTO_INCREMENT column by the previous INSERT or UPDATE statement.

shaalaa.com
Functions in SQL
  Is there an error in this question or solution?
Advertisements
Share
Notifications



      Forgot password?
Use app×