Build the test before inserting into the SQL statement like:
qvar = '%{}%'.format(var) sql = "select valore from tab where valore LIKE qvar"
help, search in python mysql
|
|