MySQLdb LIKE '%%%s%%' problem

Marco Mariani marco at
Wed Jan 14 16:32:30 CET 2009

Steve Holden wrote:

> 3. I can't be certain my experience with PostgreSQL extends to MySQl,
> but I have done experiments which prove to my satisfaction that it isn't
> possible to parameterize LIKE arguments. So the only way to do it
> appears to be to build the query yourself.

Or using Postgres through SQLAlchemy.

Actually, the only thing SQLAlchemy cannot do (yet) is withstand a 
zombie army.

More information about the Python-list mailing list