better way?

Matthew Woodcraft matthew at
Tue Aug 11 22:10:03 CEST 2009

"Rami Chowdhury" <rami.chowdhury at> 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.


More information about the Python-list mailing list