Why isn't this query working in python?

Dave Borne dborne at gmail.com
Fri May 25 10:51:01 EDT 2007


> I'm trying to run the following query:
...
> member_id=%s AND expire_date > NOW() AND completed=1 AND (product_id

Shouldn't you be using the bind variable '?' instead of '%s' ?
(I'm asking because I'm not entirely sure how the execute command is
doing the substitution)

-Dave



More information about the Python-list mailing list