From: | "Hunter, Ray" <rhunter(at)enterasys(dot)com> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | Sequences |
Date: | 2002-02-11 13:43:23 |
Message-ID: | 59358A738F45D51186A30008C74CE250E81373@slc-exc1.ctron.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
I have various sequences in my database set up for ids. My question is:
How can I get the current value of the sequence without creating a session
and using the currval function?
I would like to take the current value of the sequence and use it for a
value in an insert statement.
Example:
insert into users ( "user_id", "user_fname", "user_lname",
"user_email" )
values ( 'current sequence', 'Ray', 'Hunter',
'rhunter(at)enterasys(dot)com' );
Thanks,
Ray Hunter
Firmware Engineer
ENTERASYS NETWORKS
Phone: 801 887-9888
Fax: 801 972-5789
Email: rhunter(at)enterasys(dot)com <mailto:rhunter(at)enterasys(dot)com>
www: www.enterasys.com <http://www.enterasys.com>
From | Date | Subject | |
---|---|---|---|
Next Message | James Carrier | 2002-02-11 14:17:39 | Re: SQL Help - multi values |
Previous Message | Brent Verner | 2002-02-11 03:49:23 | Re: RTLD_LAZY considered harmful (Re: pltlc and pltlcu |