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

Home -> Community -> Usenet -> c.d.o.server -> Re: Using UPDATE with ROWNUM?

Re: Using UPDATE with ROWNUM?

From: DA Morgan <damorgan_at_psoug.org>
Date: Fri, 29 Jun 2007 14:16:09 -0700
Message-ID: <1183151689.328262@bubbleator.drizzle.com>


Hasta wrote:

> But why would the OP get ora-1555, Joel (and Frank and Daniel) ?
>
> He is not commiting in a cursor loop, afaics
>
> begin
> loop
> update (select seq_no from mytable) set seq_no = tempseq.nextval
> where rownum <= 1000;
> exit when SQL%FOUND = false;
> commit;
> end loop;
> end;
>
> --- Raoul

Lets see:

   EXIT ...
   COMMIT ...
END LOOP ...

He isn't?

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Fri Jun 29 2007 - 16:16:09 CDT

Original text of this message

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