Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: How to delay a sql statement in PL/SQL block
On 7 Nov 1996 17:20:46 GMT, lesliet_at_u.washington.edu (L. Tseng) wrote:
>I'd like to do the following:
>
> LOOP
>
> delay 5 seconds;
>
> select...;
> delete ...;
> update...;
> END LOOP;
>
>Does anyone know how to implement this? I noticed 'DELAY'
>is a reserved word in PL/SQL but could not find any info
>about it. Is this the right one to use and how?
>Thanks,
>
>Leslie
dbms_lock.sleep(5) will do this for you
Thomas Kyte
Oracle Government
tkyte_at_us.oracle.com
![]() |
![]() |