如何查看mysql语句运行时间

查看mysql语句运行时间的方法:使用timestampdiff来查看执行时间,代码为【select * from comment;select timestampdiff(second,@d,now());】。 查看mysql语句运行时间的方法: 使用timestampdiff来查看执行时

查看mysql语句运行时间的方法:使用timestampdiff来查看执行时间,代码为【select * from comment;select timestampdiff(second,@d,now());】。

查看mysql语句运行时间的方法:

使用timestampdiff来查看执行时间。

这种方法有一点要注意,就是三条sql语句要尽量连一起执行,不然误差太大,根本不准