Re: [SQL] How to quietly increment a SEQUENCE? - Mailing list pgsql-sql

From Bruce Momjian
Subject Re: [SQL] How to quietly increment a SEQUENCE?
Date
Msg-id 200002101829.NAA19082@candle.pha.pa.us
Whole thread Raw
In response to How to quietly increment a SEQUENCE?  ("Martin Kresse" <mkresse@slyde.in-berlin.de>)
List 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@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-sql by date:

Previous
From: "Martin Kresse"
Date:
Subject: How to quietly increment a SEQUENCE?
Next
From: "Saltsgaver, Scott"
Date:
Subject: Techniques for quickly finding words in a phrase...