English

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

Advertisements
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

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?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×