Skip site navigation (1) Skip section navigation (2)

Re: No REPLACE function ?!

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: No REPLACE function ?!
Date: 2009-04-01 05:55:41
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
In response to Jeffrey Lake - Admin :
> let me take a gander there is no REPLACE function like mySQL ??
> I will have to to check to see if the data exists if it does UPDATE it
> if not INSERT it ??

No, but you can use the solution described in the docs:

Regards, Andreas
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA

In response to

pgsql-novice by date

Next:From: CraigDate: 2009-04-01 14:08:11
Subject: How to out \df to a file
Previous:From: Jeffrey Lake - AdminDate: 2009-04-01 05:10:31
Subject: No REPLACE function ?!

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group