MySQL 查看命令执行时间

查看执行时间

1 show profiles; 
2  show variables like "%pro%";查看profiling 是否是on状态;

3 如果是off,则执行set profiling = 1; 
4 执行自己的sql语句; 
5 执行show profiles;就可以查到sql语句的执行时间;

原文地址:https://www.cnblogs.com/mianbaoshu/p/12068834.html