查看sql预计的运行时间

##查看数据库的配置:
show variables like '%profi%'
##设置为=1的话,mysql就会统计相关的sql执行语句的一些信息;
set profiling = =1;
##运行sql语句
执行sql语句 ;
##查看sql语句执行的时间
show profiles;

posted on 2019-02-24 15:40  wumangxing  阅读(886)  评论(0)    收藏  举报