How to correctly set AUTO INCREMENT fo a column in SQLite, using Python?

前端 未结 4 917
轻奢々
轻奢々 2021-02-04 04:33

I have been trying with the below code:

import sqlite3
data_person_name = [(\'Michael\', \'Fox\'),
                    (\'Adam\', \'Miller\'),
                           


        
4条回答
  •  心在旅途
    2021-02-04 05:15

    It seems that you've done it already. So there's no need to reference that field when you insert.

    INSERT INTO q1_person_name (first_name, last_name) VALUES (?,?)
    

提交回复
热议问题