Python mysql.connector use a variable in sql statement

前端 未结 0 1597
离开以前
离开以前 2021-02-07 06:31

I need to be able to use a variable in an sql statement in order to search multiple different columns.

chicken = str("fav1")

cursor.execute("selec         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题