ReferenceSQL FunctionsScalar FunctionsSystem FunctionsCONNECTION_IDOn this pageCONNECTION_IDDescriptionβ 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 |+-----------------+