The following table describes the lock functions supported by the MySQL mode of OceanBase Database.
| Function | Description |
|---|---|
| GET_LOCK | Obtains a named lock. |
| IS_FREE_LOCK | Checks whether a named lock is free. |
| IS_USED_LOCK | Checks whether a named lock is in use. |
| RELEASE_ALL_LOCKS | Releases all named locks held by the current session. |
| RELEASE_LOCK | Releases a named lock. |