X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 43D18D1B377 for ; Thu, 22 Jul 2004 10:20:48 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 32621-09 for ; Thu, 22 Jul 2004 13:20:49 +0000 (GMT) Received: from sharp.noc24x7.com (unknown [69.56.128.138]) by svr1.postgresql.org (Postfix) with ESMTP id 37FFFD1B16A for ; Thu, 22 Jul 2004 10:20:41 -0300 (ADT) Received: from [61.1.218.166] (helo=thenilgiris.com) by sharp.noc24x7.com with asmtp (Exim 4.34) id 1BndVC-00010P-LN; Thu, 22 Jul 2004 18:50:52 +0530 Received: from localhost (localhost [[UNIX: localhost]]) by thenilgiris.com (8.11.2/8.11.2) id i6MBe2j20552; Thu, 22 Jul 2004 17:10:02 +0530 Content-Type: text/plain; charset="iso-8859-1" From: Kenneth Gonsalves To: , "Postgresql Sql Group (E-mail)" Subject: Re: next integer in serial key Date: Thu, 22 Jul 2004 17:10:01 +0530 X-Mailer: KMail [version 1.2] References: <019001c46fe1$cb182b20$2766f30a@development.greatgulfhomes.com> In-Reply-To: <019001c46fe1$cb182b20$2766f30a@development.greatgulfhomes.com> MIME-Version: 1.0 Message-Id: <04072217100110.01150@thenilgiris.com> Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sharp.noc24x7.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - thenilgiris.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/177 X-Sequence-Number: 18429 On Thursday 22 July 2004 05:18 pm, terry@ashtonwoodshomes.com wrote: > Alternatively, you can do: > INSERT (accepting the default) > then SELECT currval(the_sequence_object); > then did this. barf: foreign key not in original table -- regards kg http://www.onlineindianhotels.net - hotel bookings reservations in over 4600 hotels in India http://www.ootygolfclub.org