Re: Postgres and multiple updates in one statement

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Postgres and multiple updates in one statement
Дата
Msg-id dcc563d10907270832g1001af7obcbc54183975306c@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Postgres and multiple updates in one statement  ("Jamie Lawrence-Jenner" <jamie.jenner@autovhc.co.uk>)
Ответы Re: Postgres and multiple updates in one statement
Список pgsql-general
On Mon, Jul 27, 2009 at 8:48 AM, Jamie
Lawrence-Jenner<jamie.jenner@autovhc.co.uk> wrote:
> Hi There
>
> Our update statements are  as follows
>
> Update table set col1=x,col2=y where pkid=1;
> Update table set col1=x,col2=y where pkid=2;
> Update table set col1=x,col2=y where pkid=3;
>
> Very simple and straight forward. Sometimes there could be as many as 50
> update statements to process.

Might as well fire them each as separate statements inside one
transaction, since pkid is unique and non-repeated in the updates.

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

Предыдущее
От: nha
Дата:
Сообщение: Re: Postgres and multiple updates in one statement
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Postgres and multiple updates in one statement