SQLite3 and lastrowid

fuglyducky fuglyducky at gmail.com
Tue Nov 16 21:00:12 CET 2010


I am fairly new to Python (no development experience) and brand new to
using sqlite through Python. With that said, I created a database with
two tables. The first has about 30,000 rows of static data. The second
has 9 rows of static data.

Before I added the second table I could simply run
'print(cursor.lastrowid)' and it would give me the id number. However,
with two tables I am unable to do this.

Does anyone know if there is a way to reference one table or another
to get lastrowid?

Thanks!!!



More information about the Python-list mailing list