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, 2571🔥, 0💬
Popular Posts:
How To Connect the Oracle Server as SYSDBA in Oracle? This is Step 4. The best way to connect to the...
How To Install PHP on Windows in MySQL? The best way to download and install PHP on Windows systems ...
How To Convert Binary Strings into Integers in SQL Server Transact-SQL? Binary strings and integers ...
How AdventureWorksLT tables are related in SQL Server? There are 12 user tables defined in Adventure...
What Happens If the Imported Table Already Exists in Oracle? If the import process tries to import a...