Re: INSERT OR UPDATE WITHOUT SELECT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



am  30.05.2006, um 17:47:47 -0300 mailte wmiro@xxxxxxxxx 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    === 


[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux