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.


The SLEEP stored procedure is used to suspend the current session for the specified period in seconds.
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.