lj8aiw
Last Updated: February 25, 2016
·
378
· purak
Fe0a1519fcf6d2efd7f1a0bbc20660d2

id column in SQLite and Python

If you want to use id column that has INTEGER BLA BLA AUTOINCREMENT features, consider the following:

self.cursor.execute('''INSERT INTO package VALUES(?, ?, ?....., ?), (None, bla, bla, ..., bla),)

Note that I am using None to insert to id column.

Say Thanks
Respond