Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Pausing inside a cursor
Hi, Jim,
On Tue, 23 Feb 1999 20:47:28 GMT, jrsmith_at_netwave.net <jrsmith_at_netwave.net>
wrote:
[...]
>
>DECLARE
> CURSOR c IS SELECT...;
> v c%ROWTYPE;
>BEGIN
> OPEN...
> LOOP
> FETCH... etc...
> EXIT WHEN...
> DBMS_OUTPUT.PUT_LINE(zzyzz)...
> ...
> [ and I want to prompt for return here regardless of page size ]
> --DO OTHER THINGS...
> ...
> ...
> END LOOP;
> CLOSE...
>END;
>/
>bail
>
>How do I get this script to pause inside the loop regardless of
>linecount? When I put in:
You can use DMBS_LOCK.SLEEP(n) to pause for n seconds.
Regards
Christoph Glanz
--
Christoph Glanz Tel: +49-40-5070-7675 Lufthansa Systems AS GmbH Fax: +49-40-5070-7880 Schuetzenwall 1 Internet: http://www.lhsystemsas.deD - 22844 Norderstedt Received on Fri Feb 26 1999 - 03:15:13 CST