I am getting an "Operator error near "?"" error when I run the following SQL statement;
key = 'field_a'
value = '01/01/2011'
#self.testac = '010101010'
self.qry.execute('''UPDATE data_base SET ?=? WHERE atnumber = ?''',(key, value, self.testac))
self.qry.commit()
key and value are dynamically generated based on the field the user wants to edit which is why the SET statement has ?=?
Any ideas?
Thanks!