Update on Insert

Поиск
Список
Период
Сортировка
От Sebastian Feher
Тема Update on Insert
Дата
Msg-id 33d2b7940911161040sf9a5fdm1818c525517b6cb7@mail.gmail.com
обсуждение исходный текст
Ответы Re: Update on Insert  ("Dann Corbit" <DCorbit@connx.com>)
Список pgsql-general
Hi Everyone,

Given a table "Items" with a PK "item1" and "Qty" - a numeric column
I'd like to define a way in Postgres to insert when item11 doesn't
exist already in "Items" and update the Qty by adding the new quantity
to the existent when the item11 exists. What is a good approach and
where should I be looking for details. Thanks.

Sebastian

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

Предыдущее
От: manitou-sig@sd-9404.dedibox.fr
Дата:
Сообщение: Re: passing parameters to multiple statements
Следующее
От: Jonathan
Дата:
Сообщение: Re: Full Text Search 101?