Re: [SQL] How to quietly increment a SEQUENCE?

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Martin Kresse <mkresse(at)slyde(dot)in-berlin(dot)de>
Cc: pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] How to quietly increment a SEQUENCE?
Date: 2000-02-10 18:29:11
Message-ID: 200002101829.NAA19082@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> 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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Saltsgaver, Scott 2000-02-11 22:00:53 Techniques for quickly finding words in a phrase...
Previous Message Martin Kresse 2000-02-10 17:59:26 How to quietly increment a SEQUENCE?