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 *
相關文章
相關標籤/搜索