如何查看mysql语句运行时间

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

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

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

使用timestampdiff来查看执行时间。

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

推荐:mysql数据库(视频)

以上就是如何查看mysql语句运行时间的详细内容,更多请关注每日运维其它相关文章!