Watch the 7.3 Webinar On-Demand
This new release brings updates to Universal Storage, query optimization, and usability that you won’t want to miss.

CONNECTION_ID

Returns the unique connection ID of the current connection.

Syntax

CONNECTION_ID()

Return Type

Integer.

Example

SELECT CONNECTION_ID();
****
+-----------------+
| CONNECTION_ID() |
+-----------------+
|             171 |
+-----------------+