MySQL 8.0版本说明
MySQL 8.0源代码文档10bet官方网站
返回是的
或没有
来指示给定连接ID的性能模式检测是否已启用,未知的
如果ID未知,或者零
如果ID为零
.
in_connection_id BIGINT无符号
:连接ID。类中给出的类型的值PROCESSLIST_ID
的“性能架构”列线程
表或Id
列的显示PROCESSLIST
输出。
mysql >选择sys.ps_is_thread_instrumented (43);+-----------------------------------+ | sys.ps_is_thread_instrumented (43 ) | +-----------------------------------+ | 未知的 | +-----------------------------------+ mysql >选择sys.ps_is_thread_instrumented (CONNECTION_ID ());+------------------------------------------------+ | sys.ps_is_thread_instrumented (CONNECTION_ID ()) | +------------------------------------------------+ | 是的 | +------------------------------------------------+