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

'hasOwnProperty' in javascript -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

android - Unable to generate FCM token from dynamically instantiated Firebase -