Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: how to 'wait' in SQL plus
Alan wrote:
> yong321_at_yahoo.com (Yong Huang) wrote in message news:<b3cb12d6.0408121100.26cab210_at_posting.google.com>... >
> > > > So there is no single command like 'wait' or 'timeout' or simple things like that? >
Yes, it is very simple, one single command, as reading the documentation for the suggestion above would show:
SQL> select to_char(sysdate, 'HH24:MI') from dual;
TO_CH
SQL> exec DBMS_LOCK.SLEEP(120);
PL/SQL procedure successfully completed.
SQL> select to_char(sysdate, 'HH24:MI') from dual;
TO_CH
--Mark Bole Received on Thu Aug 12 2004 - 22:29:20 CDT