SLEEP()

Overview

Sleeps for the requested number of seconds.

USAGE

SLEEP(seconds)

Argument Name

Description

seconds

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).

SYNONYMS

SCHEMA

PARAMETERS

SKYSQL

PRIVILEGES

EXAMPLES

SELECT SLEEP(2);
+----------+
| SLEEP(2) |
+----------+
|        0 |
+----------+
SELECT SLEEP(0.25);
+-------------+
| SLEEP(0.25) |
+-------------+
|           0 |
+-------------+

ERROR HANDLING

FEATURE INTERACTION

RESPONSES

DIAGNOSIS

ISO 9075:2016

CHANGE HISTORY

Release Series

History

23.09

  • Present starting in MariaDB Xpand 23.09.1.

6.1

  • Present starting in MariaDB Xpand 6.1.0.

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.1

  • Present starting in MariaDB Xpand 6.1.0.

EXTERNAL REFERENCES