/1000000000000 as 等待时间,lock_time/1000000000000 as 锁的时间,errors,rows_sent,rows_examined,select_scan,sort_rows...,digest,errors,rows_affected,rows_sent,created_tmp_disk_tables,select_scan
from events_statements_history_long...SELECT DISTINCT s.table_schema, s.table_name, s.index_name
-- , i.count_star
FROM information_schema.statistics...= 'PRIMARY'
AND i.count_star = 0
ORDER BY s.table_schema, s.table_name, s.index_name;
2 查询MYSQL...最后下面的SQL 可以统计整体预计执行的信息并且以,从最慢的SQL 开始,包含各种语句的维度信息
SELECT left(digest_text, 64)
, ROUND(SUM(timer_end-timer_start