Re: next integer in serial key

From: Kenneth Gonsalves <lawgon(at)thenilgiris(dot)com>
To: <terry(at)ashtonwoodshomes(dot)com>, "Postgresql Sql Group (E-mail)" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: next integer in serial key
Date: 2004-07-22 11:40:01
Message-ID: 04072217100110.01150@thenilgiris.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Thursday 22 July 2004 05:18 pm, terry(at)ashtonwoodshomes(dot)com wrote:

> Alternatively, you can do:
> INSERT (accepting the default)
> then SELECT currval(the_sequence_object);
> then <extra inserts of related foreign key records>

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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message terry 2004-07-22 11:48:22 Re: next integer in serial key
Previous Message Oeln 2004-07-22 10:17:14 Issue with plpgsql trigger