CONNECTION_ID() returns the connection ID (thread ID) for the connection. : CONNECTION_ID : Information Functions MySQL TUTORIALS


MySQL TUTORIALS » Information Functions » CONNECTION_ID »

 

CONNECTION_ID() returns the connection ID (thread ID) for the connection.


Every connection has an ID that is unique among the set of currently connected clients.

mysql>
mysql> SELECT CONNECTION_ID();
+-----------------+
| CONNECTION_ID() |
+-----------------+
|              37 |
+-----------------+
row in set (0.00 sec)

mysql>



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Information Functions
» CONNECTION_ID