PolarDB supports the DBMS_LOCK.SLEEP stored procedure.

Table 1. DBMS_LOCK function and 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)
Table 2. Parameters
Parameter Description
seconds Specifies the suspension duration of the session in seconds. It can be a decimal value, such as 1.75.