Skip to main content

CONNECTION_ID

Returns the connection ID for the current connection.

Syntax

CONNECTION_ID()

Examples

SELECT CONNECTION_ID();

┌──────────────────────────────────────┐
│ connection_id()
├──────────────────────────────────────┤
23cb06ec-583e-4eba-b790-7c8cf72a53f8 │
└──────────────────────────────────────┘
Try Databend Cloud for FREE

Multimodal, object-storage-native warehouse for BI, vectors, search, and geo.

Snowflake-compatible SQL with automatic scaling.

Sign up and get $200 in credits.

Try it today