Data GuidesSQL FunctionsScalar FunctionsSystem FunctionsCONNECTION_IDOn this pageCONNECTION_ID Descriptionโ Get the connection number of the current sql client. Syntaxโ SQLCONNECTION_ID() Return valueโ The connection number of the current sql client. Examplesโ SQLselect connection_id(); TEXT+-----------------+| connection_id() |+-----------------+| 549 |+-----------------+