MySQL CONNECTION_ID() Function

MySQL Functions : Return the unique connection ID for the current connection

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