MySQL Connector/Python - insert python variable to MySQL table

后端 未结 3 1771
旧巷少年郎
旧巷少年郎 2020-12-16 03:11

I\'m trying to insert a python variable into a MySQL table within a python script but it is not working. Here is my code

add_results=(\"INSERT INTO account_         


        
3条回答
  •  清歌不尽
    2020-12-16 03:28

    If you are on python 3 and above, just use mysqlclient pip install mysqlclient. It is recommended by django and all the other drivers are bad.

提交回复
热议问题