In sql code we would do the following

select my_table_s.nextval
into my_variable
from dual;

insert into my_table values(my_variable,.....)

And then use my_variable for whatever you need it for.

>>> "Apps Sol" <[EMAIL PROTECTED]> 02/26/01 10:25AM >>>
 Hello ,

One of our developers have some issues regarding sequences in Oracle

Here is what he is looking for

"I'm trying to use CMP for beans that map to tables in which the primary key
is an integer that comes from an Oracle SEQUENCE. How do I get the container
to get the next number from the appropriate SEQUENCE on a create?"

Oracle 8.1.6 on Linux

Any help.....&(*&*(


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com 
-- 
Author: Apps Sol
  INET: [EMAIL PROTECTED] 

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: William Beilstein
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to