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

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [SQL] How to quietly increment a SEQUENCE?
Дата
Msg-id 200002101829.NAA19082@candle.pha.pa.us
обсуждение исходный текст
Ответ на How to quietly increment a SEQUENCE?  ("Martin Kresse" <mkresse@slyde.in-berlin.de>)
Список 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 по дате отправления:

Предыдущее
От: "Martin Kresse"
Дата:
Сообщение: How to quietly increment a SEQUENCE?
Следующее
От: "Saltsgaver, Scott"
Дата:
Сообщение: Techniques for quickly finding words in a phrase...