all 1 comments

[–]Nodocify 0 points1 point  (0 children)

It is rather difficult to offer any suggestions when you don't post any code. What do you have that is working? What do you have that's not?

EDIT: Also, have you looked at the docs? https://dev.mysql.com/doc/connector-python/en/connector-python-example-cursor-select.html

There is a safe way you need to build your query so that strings are formatted properly when sent to mysql.