Comments - CONNECTION_ID

3 years, 1 month ago Oli Sennhauser

Strictly technically speaking this is wrong: "Returns the connection ID (thread ID) for the connection." SQL> SELECT thread_id, processlist_id FROM performance_schema.threads WHERE processlist_id = CONNECTION_ID(); +-----------+----------------+

thread_idprocesslist_id

+-----------+----------------+

23692321

+-----------+----------------+ Sorry for being picky.

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.