Sleep function in ORACLE

后端 未结 11 1921
一整个雨季
一整个雨季 2020-11-30 00:52

I need execute an SQL query in ORACLE it takes a certain amount of time. So I wrote this function:

CREATE OR REPLACE FUNCTION MYSCHEMA.TEST_SLEEP
(
TIME_  I         


        
11条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-30 01:22

    If executed within "sqlplus", you can execute a host operating system command "sleep" :

    !sleep 1
    

    or

    host sleep 1
    

提交回复
热议问题