April 2008
Intermediate to advanced
566 pages
21h 55m
English
CONNECTION_ID()
CONNECTION_ID()
This function returns the MySQL connection or thread identification number for the MySQL session. There are no arguments. Connection identifiers are unique. Here is an example:
SELECT CONNECTION_ID( ); +------------------+ | CONNECTION_ID( ) | +------------------+ | 11266 | +------------------+
Read now
Unlock full access