Re: INSERT ON DUPLICATE KEY UPDATE

From: Duane Lee - EGOVX <DLee(at)mail(dot)maricopa(dot)gov>
To: 'Eduardo Pérez Ureta' <eperez(at)it(dot)uc3m(dot)es>, pgsql-general(at)postgresql(dot)org
Subject: Re: INSERT ON DUPLICATE KEY UPDATE
Date: 2004-06-18 17:19:40
Message-ID: 64EDC403A1417B4299488BAE87CA7CBF01CD0E94@maricopa_xcng0
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I would suspect you would need to write a trigger to do this.

-----Original Message-----
From: Eduardo Pérez Ureta [mailto:eperez(at)it(dot)uc3m(dot)es]
Sent: Friday, June 18, 2004 9:38 AM
To: pgsql-general(at)postgresql(dot)org
Subject: [GENERAL] INSERT ON DUPLICATE KEY UPDATE

How may I do a INSERT ON DUPLICATE KEY UPDATE like in mysql:
http://dev.mysql.com/doc/mysql/en/INSERT.html
?

Eduardo

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Eduardo Pérez Ureta 2004-06-18 17:39:27 Re: INSERT ON DUPLICATE KEY UPDATE
Previous Message Robert Fitzpatrick 2004-06-18 17:17:34 Trigger to update records out of memory