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(@duration)
|
Delays or pauses in the execution of a query or a batch of queries. |
sleep
The following examples show this function when used in a select statement:
SELECT * FROM sleep(1s);
SELECT * FROM sleep(500ms);
See also
Alternatively you may want to use the SLEEP
statement.