Sleep function
The SLEEP function is used to introduce a delay or pause in the execution of a query or a batch of queries for a specific amount of time.
Function | Description |
---|---|
sleep()
|
Delays or pauses in the execution of a query or a batch of queries. |
sleep
The sleep
function delays or pauses the execution of a query or a set of statements.
sleep(duration) -> none
The following examples show this function, and its output, when used in a RETURN
statement:
RETURN sleep(1s);
RETURN sleep(500ms);
See also
Alternatively you may want to use the SLEEP
statement.