Example

Return the unique connection ID for the current connection:

SELECT CONNECTION_ID();

Definition and Usage

The CONNECTION_ID() function returns the unique connection ID for the current connection.

Syntax

CONNECTION_ID()

Technical Details

Works in: From MySQL 4.0


Login
ADS CODE