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
2023-12-19, 225🔥, 0💬
Popular Posts:
What Is Program Global Area (PGA) in Oracle? A Program Global Area (PGA) is a memory buffer that is ...
What Are the Underflow and Overflow Behaviors on FLOAT Literals in SQL Server Transact-SQL? If you e...
Where to find tutorials to answer some frequently asked questions on Microsoft SQL Server Transact-S...
How To Verify Your PHP Installation in MySQL? PHP provides two execution interfaces: Command Line In...
How To Turn on mysql Extension on the PHP Engine in MySQL? The "mysql" API extension is provided as ...