Re: mysql replace in postgreSQL?

Поиск
Список
Период
Сортировка
От Bricklen Anderson
Тема Re: mysql replace in postgreSQL?
Дата
Msg-id 4362E898.6050303@shaw.ca
обсуждение исходный текст
Ответ на mysql replace in postgreSQL?  (blackwater dev <blackwaterdev@gmail.com>)
Список pgsql-general
blackwater dev wrote:
> In MySQL, I can use the replace statement which either updates the
> data there or inserts it.  Is there a comporable syntax to use in
> postgreSQL?
>
> I need to do an insert and don't want to have to worry about if the
> data is already there or not...so don't want to see if it there, if so
> do update if not insert...etc.
>
> Thanks.
>

In Oracle this is called the MERGE statement, but it not yet in pg. It
is on the TODO list, though.

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

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Installation trouble -- oops
Следующее
От: "w_tom"
Дата:
Сообщение: Re: Why database is corrupted after re-booting