Skip to content

Returns the connection ID for the current connection.

func.connection_id()
func.connection_id()
┌──────────────────────────────────────┐
│ func.connection_id() │
├──────────────────────────────────────┤
23cb06ec-583e-4eba-b790-7c8cf72a53f8
└──────────────────────────────────────┘
CONNECTION_ID()
SELECT CONNECTION_ID();
┌──────────────────────────────────────┐
│ connection_id() │
├──────────────────────────────────────┤
│ 23cb06ec-583e-4eba-b790-7c8cf72a53f8 │
└──────────────────────────────────────┘