CONNECTION_ID
CONNECTION_ID()
Section titled “CONNECTION_ID()”Example
Section titled “Example”SELECT CONNECTION_ID();Output
Section titled “Output”+-----------------+| CONNECTION_ID() |+-----------------+| 3296 |+-----------------+Explanation
Section titled “Explanation”In the provided example, CONNECTION_ID() function is used, which returns the connection ID for the current connection. In this case, the returned connection ID is 3296.