Skip to content
Advertisement

Tag: python-3.8

Variable to replace %s for sql is not getting honored

I have a table with single empty row inserted. Later I want to update column with some value into the row. I am trying to compose a function which will work for all the columns as shown upon execution update_column(‘fieldName’, 10), getting following error. Any help is appreciated. Failed to execute command UPDATE TABLE2 SET %s = %s WHERE ID

Advertisement