Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 2197D9FB291 for ; Tue, 6 Mar 2007 13:53:49 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 79177-04 for ; Tue, 6 Mar 2007 13:53:27 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from 137086.vserver.de (vs137086.vserver.de [62.75.137.86]) by postgresql.org (Postfix) with ESMTP id 77AD89FBA23 for ; Tue, 6 Mar 2007 13:53:26 -0400 (AST) Received: from a-kretschmer.de (p54B38776.dip0.t-ipconnect.de [84.179.135.118]) (authenticated bits=0) by 137086.vserver.de (8.12.8/8.12.8) with ESMTP id l26HrLOE027757 for ; Tue, 6 Mar 2007 18:53:21 +0100 Received: from kretschmer by a-kretschmer.de with local (Exim 4.61) (envelope-from ) id 1HOdrT-0005bR-Lc for pgsql-sql@postgresql.org; Tue, 06 Mar 2007 18:54:07 +0100 Date: Tue, 6 Mar 2007 18:54:07 +0100 From: Andreas Kretschmer To: pgsql-sql@postgresql.org Subject: Re: Inc Message-ID: <20070306175407.GA20988@KanotixBox> References: <55c095e90703060929w745cd560g12426c986b75e430@mail.gmail.com> <52066.31587.qm@web31815.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <52066.31587.qm@web31815.mail.mud.yahoo.com> X-OS: Debian/GNU Linux - weil ich es mir Wert bin! X-GPG-Fingerprint: EE16 3C01 7B9C 10F7 2C8B 3B86 4DB3 D9EE 7F45 84DA X-Message-Flag: "Windows" is not the answer. "Windows" is the question and the answer is "no"! X-Lugdd: Gerd Kube X-Info: My name is root. Just root. And I am licensed to kill -9 User-Agent: mutt-ng 1.5.9i (Linux) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.481 tagged_above=0 required=5 tests=AWL, BAYES_50, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200703/56 X-Sequence-Number: 27694 Richard Broersma Jr schrieb: > --- Ezequias Rodrigues da Rocha 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 = ; > > 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°