SLEEP()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Xpand
Topics on this page:
Overview
Sleeps for the requested number of seconds.
USAGE
SLEEP(seconds)
Argument Name | Description |
---|---|
| The number of seconds to sleep |
DETAILS
SLEEP()
is a miscellaneous function that sleeps (pauses) for the given number of seconds.
The return value is always 0
.
If the seconds
argument is NULL
, it is treated as a request to sleep for 0
seconds (which does not sleep).
EXAMPLES
SELECT SLEEP(2);
+----------+
| SLEEP(2) |
+----------+
| 0 |
+----------+
SELECT SLEEP(0.25);
+-------------+
| SLEEP(0.25) |
+-------------+
| 0 |
+-------------+