Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: WHILE EXISTS ....
Malcolm Dew-Jones wrote:
> Daniel Morgan (damorgan_at_exxesolutions.com) wrote:
> : Uma Muthu wrote:
>
> : > Is there any easy way to use WHILE EXISTS in
> : > PL/SQL like T-SQL (See below).
> : >
> : > Any help would be grateful.
> : >
> : > TIA,
> : > Uma
> : >
> : > WHILE EXISTS (SELECT * FROM TABLE WHERE <Condition>)
> : >
> : > BEGIN
> : > SOME STUFF ....
> : > END
>
> : No. And the syntax is preposterous.
>
> No it isn't oracle syntax, but how is it preposterous?
>
> While a condition is true, do something;
>
> It looks a lot like pascal to me.
I answered your question. You chose to snip that part. I'd suggest a re-read.
-- Daniel Morgan http://www.outreach.washington.edu/extinfo/certprog/oad/oad_crs.asp damorgan_at_x.washington.edu (replace 'x' with a 'u' to reply)Received on Fri Jun 27 2003 - 11:16:11 CDT