RELEASE_ALL_LOCKS
Release all named locks held by the session. This function frees all user-level locks acquired with GET_LOCK() in the current connection.
Syntax
RELEASE_ALL_LOCKS()Description
Examples
SELECT RELEASE_ALL_LOCKS();
+---------------------+
| RELEASE_ALL_LOCKS() |
+---------------------+
| 0 |
+---------------------+
SELECT GET_LOCK('lock1',10);
+----------------------+
| GET_LOCK('lock1',10) |
+----------------------+
| 1 |
+----------------------+
SELECT RELEASE_ALL_LOCKS();
+---------------------+
| RELEASE_ALL_LOCKS() |
+---------------------+
| 1 |
+---------------------+See Also
Last updated
Was this helpful?

