MySQL CONNECTION_ID() Function
Example
Return the unique connection ID for the current connection:
SELECT CONNECTION_ID();
Try it Yourself »
Definition and Usage
The CONNECTION_ID() function returns the unique connection ID for the current connection.
Syntax
CONNECTION_ID()
Technical Details
Works in: | MySQL 5.7, MySQL 5.6, MySQL 5.5, MySQL 5.1, MySQL 5.0, MySQL 4.1, MySQL 4.0, MySQL 3.23 |
---|