SQL '>' showing up as '$gt;' in Python MySQL Connecor

Viewed 30

I am using MySQL connector to write a database connection API and I am having a problem when using relational statements. When I write ">" in the string and pass it in as the query string, I get this SQL error because it does not recognize ">"

mysql.connector.errors.ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual
        that corresponds to your MySQL server version for the right syntax to use near 'GHI_DATA.time_stamp >=
        2019-5-10' at line 1 // Werkzeug Debugger</title>
0 Answers
Related