Am I using the ? placeholder wrong in this example?
t = ('hi', 'bye')
self.connection .execute("INSER T INTO Personal (firstName, lastName)
VALUES ?", t)
Traceback (most recent call last):
File "C:\Python25\my scripts\labdb\d bapp.py", line 93, in OnSaveRecord
self.save_to_da tabase(textfiel d_values)
File "C:\Python25\my scripts\labdb\d bapp.py", line 97, in save_to_databas e
self.connection .execute("INSER T INTO Personal (firstName, lastName)
VALUES ?", t)
sqlite3.Operati onalError: near "?": syntax error
t = ('hi', 'bye')
self.connection .execute("INSER T INTO Personal (firstName, lastName)
VALUES ?", t)
Traceback (most recent call last):
File "C:\Python25\my scripts\labdb\d bapp.py", line 93, in OnSaveRecord
self.save_to_da tabase(textfiel d_values)
File "C:\Python25\my scripts\labdb\d bapp.py", line 97, in save_to_databas e
self.connection .execute("INSER T INTO Personal (firstName, lastName)
VALUES ?", t)
sqlite3.Operati onalError: near "?": syntax error
Comment