一、explain 语句

 

查看语句的执行计划

 

二、查看具体每一步耗时

 1set profiling=1;
2、执行SQL
3、show profiles; 获取2执行SQL的query_id
4、show profile for query 【3步获取的query_id】 

 

相关文章:

  • 2021-11-15
  • 2022-02-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-20
  • 2021-12-20
猜你喜欢
  • 2022-12-23
  • 2021-08-02
  • 2021-06-21
  • 2022-12-23
  • 2022-01-01
  • 2022-02-21
  • 2022-03-05
相关资源
相似解决方案