Answers for "like in mysqldb python"

1

like in mysqldb python

# you can't have '%' directly onto the query, you have to pass it as args
c.execute("SELECT * FROM data WHERE params LIKE %s LIMIT 1", ("%" + param + "%",))
Posted by: Guest on October-25-2021

Python Answers by Framework

Browse Popular Code Answers by Language