Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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 + "%",))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mysqldb #python
ADD COMMENT
Topic
Name
2+7 =