How to quietly increment a SEQUENCE?
How to quietly increment a SEQUENCE?
От:
"Martin Kresse" <mkresse@slyde.in-berlin.de>
Дата:
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('...'))?
Thanks for your help, Martin Kresse
Re: [SQL] How to quietly increment a SEQUENCE?
От:
Bruce Momjian <pgman@candle.pha.pa.us>
Дата:
> 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