MySQL supports INSERT IGNORE and REPLACE statements which inserts if a row exists and does nothing otherwise or replaces the current row, respectively.
PostgreSQL supports neither of these statements and suggests
using stored procedures to get around the lack of these statements.
However, there are major shortcomings:
There was some other insert method in mysql addition to the above,
but I do not remember it now. But the functionality was such that the
row gets updated if it exists, otherwise inserted.
Petri
This archive was generated by hypermail 2.2.0 : 12/19/08 EST