sqlite autoincrement of primary key
mwilson at the-wire.com
Mon Nov 29 19:19:19 CET 2010
> Normally, the sqlite command that works would be
> INSERT INTO 'foo' VALUES (NULL, 'yyy' )
> however, if in python i try to execute a script like:
> INSERT INTO 'foo' VALUES (?,?)
> I get a datatype mismatch error.
> Has anyone a workaround ?
Have you tried
'''INSERT INTO foo VALUES (NULL, ?)'''
More information about the Python-list