查看执行时间

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

1 show profiles;

2 show variables;查看profiling 是否是on状态;

v

3 如果是off,则 set profiling = 1;

VB

4 执行自己的sql语句;

5 show profiles;就可以查到sql语句的执行时间;

胜象大百科