SLEEP

2024-04-19 08:42:50  Updated

The SLEEP stored procedure suspends the current session for a specified amount of time.

Applicability

This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition provides only the MySQL mode.

Syntax

DBMS_LOCK.SLEEP (
seconds  IN NUMBER);

Parameters

Parameter Description
seconds The amount of time in seconds to suspend the session. The smallest increment is in hundredths of a second. For example, 1.95 is a valid value.

Contact Us