Re: How to insert on duplicate key?

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: How to insert on duplicate key?
Дата
Msg-id 41276A54-80FC-4864-8A5F-77AF2554D6AB@seespotcode.net
обсуждение исходный текст
Ответ на How to insert on duplicate key?  ("fdu.xiaojf@gmail.com" <fdu.xiaojf@gmail.com>)
Ответы Re: How to insert on duplicate key?  ("fdu.xiaojf@gmail.com" <fdu.xiaojf@gmail.com>)
Список pgsql-general
On Dec 24, 2007, at 22:03 , fdu.xiaojf@gmail.com wrote:

> I have googled and currently the only way I can find is do query
> first and then update or insert.

Or alternatively, UPDATE and see if you've affected any rows. If not,
insert.

Michael Glaesemann
grzm seespotcode net



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

Предыдущее
От: "fdu.xiaojf@gmail.com"
Дата:
Сообщение: How to insert on duplicate key?
Следующее
От: "fdu.xiaojf@gmail.com"
Дата:
Сообщение: Re: How to insert on duplicate key?