pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Kretschmer <akretschmer@spamfence.net>
To: pgsql-sql@postgresql.org
Subject: Re: Inc
Date: Tue, 6 Mar 2007 18:54:07 +0100
Message-ID: <20070306175407.GA20988@KanotixBox> (raw)
In-Reply-To: <52066.31587.qm@web31815.mail.mud.yahoo.com>
References: <55c095e90703060929w745cd560g12426c986b75e430@mail.gmail.com>
	<52066.31587.qm@web31815.mail.mud.yahoo.com>

Richard Broersma Jr <rabroersma@yahoo.com> schrieb:

> --- Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com> wrote:
> 
> > Thank you but I must inc an specific row. How to do that ?
> > 
> 
> Does,
> 
> UPDATE your_table
> SET your_row = your_row +1
> WHERE your_pkey = <some value>;
> 
> not do what you need?

I think, he is searching for a TRIGGER and he has got the solution.


Andreas
-- 
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."    (unknow)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°



view thread (9+ messages)  latest in thread

Message-ID: <20070306175407.GA20988@KanotixBox>
Permalink:  ../20070306175407.GA20988@KanotixBox/
Also on:    postgresql.org/message-id/20070306175407.GA20988@KanotixBox

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: akretschmer@spamfence.net
  Subject: Re: Inc
  In-Reply-To: <20070306175407.GA20988@KanotixBox>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox