Curriculum
Course: MYSQL
Login

Curriculum

MYSQL

MySQL References

0/140
Text lesson

CONNECTION_ID

Example

Retrieve the unique connection ID for the current session.

SELECT CONNECTION_ID();

Definition and Usage

The CONNECTION_ID() function retrieves the unique connection ID assigned to the current connection.

Syntax

CONNECTION_ID()

Technical Details

Works in:

 From MySQL version 4.0