Re: No REPLACE function ?!

Поиск
Список
Период
Сортировка
От A. Kretschmer
Тема Re: No REPLACE function ?!
Дата
Msg-id 20090401055541.GA29430@a-kretschmer.de
обсуждение исходный текст
Ответ на No REPLACE function ?!  ("Jeffrey Lake - Admin" <admin@michiganwxsystem.com>)
Список 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:
http://www.postgresql.org/docs/current/static/plpgsql-control-structures.html#PLPGSQL-UPSERT-EXAMPLE


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

В списке pgsql-novice по дате отправления:

Предыдущее
От: "Jeffrey Lake - Admin"
Дата:
Сообщение: No REPLACE function ?!
Следующее
От: "Craig"
Дата:
Сообщение: How to out \df to a file