美文网首页
检测Mysql语言执行效率

检测Mysql语言执行效率

作者: 丶Assassin丨 | 来源:发表于2017-09-06 18:09 被阅读0次

    mysql> set profiling=1;mysql> select distinct(num) from test_test;mysql> select num from test_test group by num;mysql> show profiles;

    +----------+------------+-------------------------------------

    06 | Query_ID| Duration  | Query  |

    08 |      1 | 0.00072550 | select distinct(num) from test_test

    09 |      2 | 0.00071650 | select num from test_test group by num

    相关文章

      网友评论

          本文标题:检测Mysql语言执行效率

          本文链接:https://www.haomeiwen.com/subject/suuvjxtx.html