better way?

Matthew Woodcraft matthew at woodcraft.me.uk
Tue Aug 11 16:10:03 EDT 2009


"Rami Chowdhury" <rami.chowdhury at gmail.com> writes:

> IIRC Postgres has had ON DUPLICATE KEY UPDATE functionality longer than
> MySQL...

PostgreSQL does not have ON DUPLICATE KEY UPDATE.

The SQL standard way to do what the OP wants is MERGE. PostgreSQL
doesn't have that either.

-M-



More information about the Python-list mailing list