What I want is execute the sql
select * from articles where author like "%steven%".
For the sake of safety, i used like this way :
cursor.execute('select * from articles where %s like %s', ('author', '%steven%')
Then the result is just empty, not get a syntax error, but just empty set. But I am pretty sure there is some thing inside, I can get result use the first sql. Is there anything run with my code ?
print cursor._last_executed, see what query is actually being executed.