We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e871ad5 commit d337279Copy full SHA for d337279
1 file changed
Doc/library/sqlite3.rst
@@ -531,6 +531,12 @@ A :class:`Cursor` instance has the following attributes and methods:
531
This includes ``SELECT`` statements because we cannot determine the number of
532
rows a query produced until all rows were fetched.
533
534
+.. attribute:: Cursor.lastrowid
535
+
536
+ This read-only attribute provides the rowid of the last modified row. It is
537
+ only set if you issued a ``INSERT`` statement using the :meth:`execute`
538
+ method. For operations other than ``INSERT`` or when :meth:`executemany` is
539
+ called, :attr:`lastrowid` is set to :const:`None`.
540
541
.. _sqlite3-types:
542
0 commit comments