Skip to main content
VeloDB Cloud 4.x is based on Doris 3.x. Versions in this section refer to Doris versions. See Version Mapping.

CONNECTION_ID

Description​

Get the connection number of the current sql client.

Syntax​

CONNECTION_ID()

Return Value​

The connection number of the current sql client.

Examples​

select connection_id();
+-----------------+
| connection_id() |
+-----------------+
| 549 |
+-----------------+