Received: from candle.pha.pa.us (pgman@s5-03.ppp.op.net [209.152.195.67]) by hub.org (8.9.3/8.9.3) with ESMTP id NAA65017 for ; Thu, 10 Feb 2000 13:29:45 -0500 (EST) (envelope-from pgman@candle.pha.pa.us) Received: (from pgman@localhost) by candle.pha.pa.us (8.9.0/8.9.0) id NAA19082; Thu, 10 Feb 2000 13:29:11 -0500 (EST) From: Bruce Momjian Message-Id: <200002101829.NAA19082@candle.pha.pa.us> Subject: Re: [SQL] How to quietly increment a SEQUENCE? In-Reply-To: <200002101759.SAA05105@mail.vr.IN-Berlin.DE> from Martin Kresse at "Feb 10, 2000 06:59:26 pm" To: Martin Kresse Date: Thu, 10 Feb 2000 13:29:11 -0500 (EST) CC: pgsql-sql@postgreSQL.org X-Mailer: ELM [version 2.4ME+ PL66 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit > Hi there, > > How can I (quietly) increment a SEQUENCE without having to use > SELECT, or is there a way to dump the result of a query (SELECT > NEXTVAL('...'))? SELECT next_val('seqname'); -- Bruce Momjian | http://www.op.net/~candle pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026