Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Subsequent call to seq_name.nextval. Please help.
"Silver" <boltsilver_at_hotmail.com> wrote in message
news:ad3752b9.0106211313.66bd170c_at_posting.google.com...
> cursor c_cust_id is select seq_customer_id.nextval from dual;
> begin
> open c_cust_id;
> fetch c_cust_id into val;
> if mod(val,2) = 1 then
> fetch c_cust_id into val;
> end if;
> close c_cust_id;
That doesn't seem quite right - how are you managing to get two fetches from dual? Surely you should close and then open-fetch-close once more?
Andy Received on Fri Jun 22 2001 - 08:04:01 CDT