THE WORLD'S LARGEST WEB DEVELOPER SITE

MySQL CONNECTION_ID() Function

❮ MySQL Functions

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: From MySQL 4.0

❮ MySQL Functions