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, 3335🔥, 0💬
Popular Posts:
How To List All Stored Procedures in the Current Database in SQL Server Transact-SQL? If you want to...
What Is Transport Network Substrate (TNS) in Oracle? TNS, Transport Network Substrate, is a foundati...
Where to find answers to frequently asked questions on PHP Connections and Query Execution for MySQL...
How to run Queries with SQL Server Management Studio Express in SQL Server? 1. Launch and connect SQ...
How Run SQL*Plus Commands That Are Stored in a Local File in Oracle? If you have a group of commands...