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 -> Re: sqlplus: loop until no updates

Re: sqlplus: loop until no updates

From: Chris Andrew <earl_at_bell.us>
Date: 1997/04/02
Message-ID: <3342F369.4349@bell.us>#1/1

Hallvard B Furuseth wrote:
>
> How do I do this?
>
> LOOP
> UPDATE ...;
> <EXIT if no changes in last update>;
> END LOOP;
>
> --
> Hallvard
 

-- 

	LOOP
            UPDATE ... SET <colname> = value... 
	    WHERE .... <colname> != value;
        END LOOP;

Will exit after last update.
Received on Wed Apr 02 1997 - 00:00:00 CST

Original text of this message

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