Hi all,

What I want to do is:
     if a record already exists in the table, update it
     if a record doesn't exist, insert it into the table

I know that there is a ON DUPLICATE clause with MySQL, so I'm wondering is 
there a corresponding way to do this in PostgreSQL ?

Currently the only way I can find is do query first and then update or insert.

Thanks a lot.

Regards,
_______________________________________________
PyGreSQL mailing list
[email protected]
http://mailman.vex.net/mailman/listinfo/pygresql

Reply via email to