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

Home -> Community -> Usenet -> c.d.o.misc -> sequence doesn't work ?

sequence doesn't work ?

From: krzys <krzys128_at_nospam_o2.pl>
Date: Mon, 02 Feb 2004 14:45:09 +0100
Message-ID: <bvlk5g$p6o$1@inews.gazeta.pl>


I haven't written any SQL code for 3 years. I thought it should be easy but ....

  1. I creater new sequence:

create sequence counter;

2. Checked if everything is ok

select * from user_sequences

my new sequence was on the list

3. wanted to select current value of this sequence

select counter.currval from dual

but en error appears : ORA-08002: COUNTER.CURRVAL hasn't been defined in

ths session yet   ???????????????????


what does it mean ?

K.

-- 
Używam MozilliPL, a Ty? MozillaPL: http://www.MozillaPL.org
Received on Mon Feb 02 2004 - 07:45:09 CST

Original text of this message

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