[ Date Index ][
Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]
You can
do:
SELECT
currval('sequence_name') as cv;
The default sequence
names for serial are, IIRC:
<table_name>_<column_name>_seq
Alternativley you
can do a nextval('seq_name') then insert that value (which is the way I
prefer).
Cheers,
-
Stuart
DISCLAIMER:The information in this message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it, is prohibited and may be unlawful. Please immediately contact the sender if you have received this message in error. Thank you. |