The same way the default value is defined, which you can find by doing: \d tablename
Which usually gives something like: Table "public.gbs_floorplans" Column | Type | Modifiers ----------------------+---------------+----------------------------------------- --------------------------------- floorplan_id | integer | not null default nextval('public.gbs_floorplans_floorplan_id_seq'::text) division_id | character(3) | not null floorplan_display_id | character(10) | not null Hence SELECT nextval('public.gbs_floorplans_floorplan_id_seq'::text) Terry Fielder Manager Software Development and Deployment Great Gulf Homes / Ashton Woods Homes [EMAIL PROTECTED] Fax: (416) 441-9085 > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Kenneth Gonsalves > Sent: Wednesday, July 21, 2004 10:46 PM > To: [EMAIL PROTECTED] > Subject: [SQL] next integer in serial key > > > hi, > how does one get the next number in a serial type row? > -- > regards > kg > > http://www.onlineindianhotels.net - hotel bookings > reservations in over 4600 > hotels in India > http://www.ootygolfclub.org > > ---------------------------(end of > broadcast)--------------------------- > TIP 7: don't forget to increase your free space map settings > ---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match