[英]How to get this information when executing queries? (query time, lock time, rows sent and rows examined)
我在执行查询时正在查找此信息:
# Query_time: 11.639269 Lock_time: 0.000192 Rows_sent: 2 Rows_examined:
6509098
如何从命令行获取此信息?
我能想到的唯一一件事是完全错综复杂的组合
EXPLAIN ...
SET profile=1;
, SELECT
SHOW PROFILE ALL FOR QUERY <id>\\G;
如果有人能想出一个更好的方法,我会非常欢迎它(尽管计算可以在存储过程中完成)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.