Home > Backend Development > PHP Tutorial > php + mysql 的sql调试系统有不有?

php + mysql 的sql调试系统有不有?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:45:07
Original
865 people have browsed it

php + mysql 的sql调试系统有不有?

回复内容:

php + mysql 的sql调试系统有不有?

SQL 调试系统是什么,没听说过这么高级的东西。
题主想要的是不是想知道每次浏览运行执行了哪些 SQL,每条 SQL 耗时呢? 如果是这样的话,就简单了。你的查询应该都封装到一个方法里面了吧,在 Query 的时候把具体执行的 SQL 记录下来,Query 前后各记下当前时间,就可以知道该查询所花费的时间了。

可以参考thinkphp的trance输出信息

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template