how to use nextval() - Mailing list pgsql-sql

From juerg.rietmann@pup.ch
Subject how to use nextval()
Date
Msg-id OF5CD8DD5B.CD18AF26-ONC1256BED.0041BE98-C1256BED.00422F9C@pup.ch
Whole thread Raw
Responses Re: how to use nextval()  (Stephane Schildknecht <sschildknecht@aurora-linux.com>)
Re: how to use nextval()  (Achilleus Mantzios <achill@matrix.gatewaynet.com>)
List 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 by date:

Previous
From: "Rajesh Kumar Mallah."
Date:
Subject: Is Dropping a column "CHECK" constraint possible?
Next
From: Chantal Ackermann
Date:
Subject: Re: Selecting data from a table created in another database...