mysql - php如何查看最近的一次sql语句

WBOY
Release: 2016-06-06 20:09:02
Original
1256 people have browsed it

php如何查看最近的一次sql语句?
主要是调试的时候想把sql单独拿出来去分析

回复内容:

php如何查看最近的一次sql语句?
主要是调试的时候想把sql单独拿出来去分析

看看这个get-last-executed-query-in-php-pdo

框架一般都有SQL日志,你自己也可以在封装一个方法,写入日志文件即可

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!