how to use nextval()

Поиск
Список
Период
Сортировка
От juerg.rietmann@pup.ch
Тема how to use nextval()
Дата
Msg-id OF5CD8DD5B.CD18AF26-ONC1256BED.0041BE98-C1256BED.00422F9C@pup.ch
обсуждение исходный текст
Ответы Re: how to use nextval()
Re: how to use nextval()
Список pgsql-sql
Hello there

I have an idea how to solve my problem on copy a record to a new one in the
same table. To do so I need the next value for the primary key.

Using :

select nextval('pk_auftrag') as nextkey from auftrag;

I get an error like : Relation pk_auftrag does not exist !

Thanks for any help ... jr

__________________________________________________

PFISTER + PARTNER, SYSTEM - ENGINEERING AG
Juerg Rietmann
Grundstrasse 22a
6343 Rotkreuz
Switzerland

internet          :  www.pup.ch
phone       : +4141 790 4040
fax         : +4141 790 2545
mobile            : +4179 211 0315
__________________________________________________






В списке pgsql-sql по дате отправления:

Предыдущее
От: "Rajesh Kumar Mallah."
Дата:
Сообщение: Is Dropping a column "CHECK" constraint possible?
Следующее
От: Chantal Ackermann
Дата:
Сообщение: Re: Selecting data from a table created in another database...