Python: pymysql parameter query does not work -


i having hard time using query, doing nothing without displaying error message.

i have list , put variable, name b c .. on, , using pymysql wanted put in db

cursor.execute("insert db (a, b, c, d, e) values ({}, {}, {}, {}, {})", (a,b,c,d,e))

it supposed insert in table nothing happened

just examples show, string bound parameters "%s".

cursor.execute("insert db (a, b, c, d, e) values (%s, %s, %s, %s, %s)", (a, b, c, d, e)) 

Comments

Popular posts from this blog

javascript - Knockout pushing observable and computed data to an observable array -

'hasOwnProperty' in javascript -

Trouble making a JSON string -