CONNECTION_ID
Return the connection ID. This function retrieves the unique thread identifier for the current client connection.
Syntax
CONNECTION_ID()Description
Examples
SELECT CONNECTION_ID();
+-----------------+
| CONNECTION_ID() |
+-----------------+
| 3 |
+-----------------+See Also
Last updated
Was this helpful?

