Re: INSERT OR UPDATE WITHOUT SELECT

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: INSERT OR UPDATE WITHOUT SELECT
Date: 2006-06-04 07:40:14
Message-ID: 20060604074014.GA2447@webserv.wug-glas.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

am 30.05.2006, um 17:47:47 -0300 mailte wmiro(at)ig(dot)com(dot)br folgendes:
> Hi,
>
> Is there a command to Insert a record If It does not exists and a update if
> It exists?

Not a single command, but a solution:
http://developer.postgresql.org/docs/postgres/plpgsql-control-structures.html#PLPGSQL-ERROR-TRAPPING

HTH, Andreas
--
Andreas Kretschmer (Kontakt: siehe Header)
Heynitz: 035242/47215, D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
=== Schollglas Unternehmensgruppe ===

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Ahmad Fajar 2006-06-04 12:00:32 Re: Bulk loading/merging
Previous Message Mark Kirkwood 2006-06-04 02:21:08 Re: RES: Initial database loading and IDE x SCSI