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: Cancelling a long running query

Re: Cancelling a long running query

From: Peter Kallweit <p_kallweit_at_arcor.de>
Date: Wed, 02 Nov 2005 14:41:43 +0100
Message-ID: <4368c218$0$21949$9b4e6d93@newsread2.arcor-online.net>


Hi,

amogh wrote:
> Can someone please suggest me how I could write a query which executes
> continously (or recursively, to never return), using a table like EMP
> (or EMP joined with DEPT if necessary).
>

just try the following:

create or replace function foo return number as begin loop null; end loop; return 1; end;

select foo from dual;

hth
Peter Received on Wed Nov 02 2005 - 07:41:43 CST

Original text of this message

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