Re: How to... in update - Mailing list pgsql-admin

From A.Bhuvaneswaran
Subject Re: How to... in update
Date
Msg-id Pine.LNX.4.44.0303211613050.2317-100000@Bhuvan.bksys.co.in
Whole thread Raw
In response to How to... in update  ("Marc Soler" <msoler@el-valles.com>)
List 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 by date:

Previous
From: "Nigel Bishop"
Date:
Subject: Any Monitoring Tools for Postgres?
Next
From: "Victor Yegorov"
Date:
Subject: psql invokation