mysql 如何查看sql语句执行时间和效率

查看执行时间 1 show profiles;  2 show variables;查看profiling 是不是on状态;  3 若是是off,则 set profiling = 1;  4 执行本身的sql语句;  5 show profiles;就能够查到sql语句的执行时间;mysql 查看操做了多少行 在sql语句前面加上 explain就能够了;sql explain select *
相关文章
相关标签/搜索