PolarDB supports the DBMS_LOCK.SLEEP stored procedure.
| Function or stored procedure | Return value type | Description |
|---|---|---|
| SLEEP(seconds) | N/A | Suspends the current session. You can specify the suspension duration in seconds. |
SLEEP
The SLEEP stored procedure is used to suspend the current session for the specified
period in seconds.
SLEEP(seconds NUMBER)| Parameter | Description |
|---|---|
| seconds | Specifies the suspension duration of the session in seconds. It can be a decimal value, such as 1.75. |