I want to do a Python MySQL query such as:
cursor = connection.cursor()
sql = "select text \
from steps \
where text like '%start%'"
cursor.execute(sql)
But the % isn't seen as a wildcard, it's expecting a variable, I guess. I get an error:
TypeError: not enough arguments for format string
Nothing seems to work. It would also be nice if I could use a variable instead of '%start%'