This repository was archived by the owner on Aug 28, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -1424,6 +1424,39 @@ mysql> SELECT sys.ps_is_account_enabled('localhost', 'root');
142414241 row in set (0.01 sec)
14251425` ` `
14261426
1427+ # ### ps_thread_id
1428+
1429+ # #### Description
1430+
1431+ Return the Performance Schema THREAD_ID for the specified connection ID.
1432+
1433+ # #### Parameters
1434+
1435+ * in_connection_id (BIGINT UNSIGNED): The id of the connection to return the thread id for.
1436+
1437+ # #### Returns
1438+
1439+ BIGINT UNSIGNED
1440+
1441+ # #### Example
1442+ ` ` ` SQL
1443+ mysql> SELECT sys.ps_thread_id(79);
1444+ +----------------------+
1445+ | sys.ps_thread_id(79) |
1446+ +----------------------+
1447+ | 98 |
1448+ +----------------------+
1449+ 1 row in set (0.00 sec)
1450+
1451+ mysql> SELECT sys.ps_thread_id(CONNECTION_ID());
1452+ +-----------------------------------+
1453+ | sys.ps_thread_id(CONNECTION_ID()) |
1454+ +-----------------------------------+
1455+ | 98 |
1456+ +-----------------------------------+
1457+ 1 row in set (0.00 sec)
1458+ ` ` `
1459+
14271460# ### ps_thread_stack
14281461
14291462# #### Description
You can’t perform that action at this time.
0 commit comments