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

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -