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: Tue, 26 Jun 2007 20:32:17 -0700
Message-ID: <1182915138.455589@bubbleator.drizzle.com>


Jagjeet Singh wrote:
> begin
> loop
> update table set col1 = sequence.nextval where col1 is null and rownum
> < 1001;
> commit;
> end loop;
> end;
>

I don't know what this is other than one of the worst examples of PL/SQL I have seen in a very long time. And I teach students new to PL/SQL.

-- 
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 Tue Jun 26 2007 - 22:32:17 CDT

Original text of this message

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