Re: How to... in update

Поиск
Список
Период
Сортировка
От A.Bhuvaneswaran
Тема Re: How to... in update
Дата
Msg-id Pine.LNX.4.44.0303211613050.2317-100000@Bhuvan.bksys.co.in
обсуждение исходный текст
Ответ на How to... in update  ("Marc Soler" <msoler@el-valles.com>)
Список pgsql-admin
> It's possible in postgres to increment a row in a UPDATE command.
>
> something like this:  UPDATE table set col_name = 'foo', col_name2 ++ WHERE
> condition

UPDATE table set col_name = 'foo', col_name2 = col_name2 + 1 WHERE
condition

Is the above your requirement? If yes, this is how it can be done.

regards,
bhuvaneswaran



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

Предыдущее
От: "Nigel Bishop"
Дата:
Сообщение: Any Monitoring Tools for Postgres?
Следующее
От: "Victor Yegorov"
Дата:
Сообщение: psql invokation