Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: seq

RE: seq

From: Mercadante, Thomas F <thomas.mercadante_at_labor.state.ny.us>
Date: Tue, 23 Dec 2003 13:04:24 -0800
Message-ID: <F001.005DAEA3.20031223130424@fatcity.com>


because the second insert is returning the result of the first insert.

try running each one twice in a row and see what happens.

Tom Mercadante
Oracle Certified Professional

-----Original Message-----
Sent: Tuesday, December 23, 2003 3:49 PM To: Multiple recipients of list ORACLE-L

Hello list , why does :

insert into test values (mysequence.nextval, mysequence.currval ) ;

have the same effect as

insert into test values (mysequence.currval, mysequence.nextval ) ;

where
1. mysequence is
create sequence mysequence increment by 1 start with 1 maxvalue 1000 nocycle nocache ;

and

2. test is
 Name Null? Type


--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: <bulbultyagi_at_now-india.net.in
  INET: bulbultyagi_at_now-india.net.in
Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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.net
--

Author: Mercadante, Thomas F
  INET: thomas.mercadante_at_labor.state.ny.us
Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 Tue Dec 23 2003 - 15:04:24 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US