Collections:
PS_CURRENT_THREAD_ID() - PS Thread ID of Current Connect
How to obtain the performance schema thread id of the current connection using the PS_CURRENT_THREAD_ID() function?
✍: FYIcenter.com
PS_CURRENT_THREAD_ID() is a MySQL built-in function that
returns the performance schema thread id of the current connection.
For example:
SELECT PS_CURRENT_THREAD_ID(); -- +------------------------+ -- | PS_CURRENT_THREAD_ID() | -- +------------------------+ -- | 348 | -- +------------------------+
Reference information of the PS_CURRENT_THREAD_ID() function:
PS_CURRENT_THREAD_ID(): id Returns the performance schema thread id of the current connection. Arguments, return value and availability: id: Return value. The performance schema thread id of the current connection. Available since MySQL 8.0.
Related MySQL functions:
⇒ PS_THREAD_ID() - PS Thread ID of Given Connect
⇐ LAST_INSERT_ID() - Last Value of AUTO_INCREMENT Column
2025-02-16, 2436🔥, 0💬
Popular Posts:
How To Format Time Zone in +/-hh:mm Format in SQL Server Transact-SQL? From the previous tutorial, y...
How To Create a Table Index in Oracle? If you have a table with a lots of rows, and you know that on...
How To End a Stored Procedure Properly in SQL Server Transact-SQL? Where the end of the "CREATE PROC...
How To Connect to a MySQL Server with a Port Number in MySQL? If you want to connect a MySQL server ...
What Is an Oracle Instance in Oracle? Every running Oracle database is associated with an Oracle ins...