Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: EJB & Oracle Sequence
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" <apps_sol_at_hotmail.com> 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: apps_sol_at_hotmail.com 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: ListGuru_at_fatcity.com (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: BeilstWH_at_obg.com 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: ListGuru_at_fatcity.com (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).Received on Mon Feb 26 2001 - 10:17:48 CST