Re: Prepared Statements
Karsten Hilbert <[email protected]>
| Newsgroups | gmane.comp.python.db.pypgsql.user |
|---|---|
| Message-ID | <[email protected]> |
Ben,
you mean like
sql = "SELECT wibble FROM wobble "
if foo:
sql += " WHERE somefield = '%s';" % some_variable
elif bar:
sql += " WHERE someotherfield = '%s';" % some_other_variable
?
Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf