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
Post a Comment