Re: Inc

From: "Ezequias Rodrigues da Rocha" <ezequias(dot)rocha(at)gmail(dot)com>
To: "Richard Huxton" <dev(at)archonet(dot)com>
Cc: PostgreSQL <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Inc
Date: 2007-03-06 19:09:34
Message-ID: 55c095e90703061109g334af305n5644a7cb10ad4c2@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I did like this:

update base.destinationTable set MyCountField = MyCountField + 1 where
id = new.keyField_ID;

I think it works becouse my tests are ok.

My really thank you all.

Ezequias
2007/3/6, Richard Huxton <dev(at)archonet(dot)com>:
> Ezequias Rodrigues da Rocha wrote:
> > Thank you but I must inc an specific row. How to do that ?
>
> I'm not sure I understand. A row in a different table?
>
> ...
> BEGIN
> UPDATE some_table SET counter = counter + 1;
> END;
> ...
>
> --
> Richard Huxton
> Archonet Ltd
>

In response to

  • Re: Inc at 2007-03-06 18:08:29 from Richard Huxton

Browse pgsql-sql by date

  From Date Subject
Next Message Gerardo Herzig 2007-03-06 21:34:23 best index for ~ ordering?
Previous Message Oleg Bartunov 2007-03-06 18:57:23 Re: GiST index question: performance