Dictionary inserts into MySQL (each key in its own field)

Carsten Haese carsten at uniqsys.com
Fri Jan 27 08:44:14 EST 2006


On Fri, 2006-01-27 at 05:47, Fredrik Lundh wrote:
> (just curious, but from where do people get the idea that arbitrary data
> just have to be inserted into the the SQL statement text all the time?  is
> this some PHP misfeature?)

Yes, the need to roll queries by inserting parameters directly into the
query string is definitely a PHP misfeature (for versions less than 5),
since the database access modules don't accommodate parametrized
queries. PHP5 finally introduced a standardized database API that allows
parametrized queries. Of course, Python has had this since 1996.

-Carsten





More information about the Python-list mailing list