怎么把程序文件中的所有sql语句及每句sql语句的运行时间显示出来

WBOY
Release: 2016-06-13 13:44:11
Original
956 people have browsed it

如何把程序文件中的所有sql语句及每句sql语句的运行时间显示出来?
php+mysql



------解决方案--------------------
如果你是要分析sql运行情况,
那么看mysql手册的“The Slow Query Log”一节吧,
然后分析log文件就行



------解决方案--------------------
数据库连接类里面的调试模式吧

好像adodb有
------解决方案--------------------
可以考虑下phpbb3中的代码

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template