天使漫步IT工作室天使漫步IT工作室

CI框架输出sql语句


Warning: count(): Parameter must be an array or an object that implements Countable in /www/wwwroot/u11u.com/usr/themes/wq/functions.php on line 110

Warning: count(): Parameter must be an array or an object that implements Countable in /www/wwwroot/u11u.com/usr/themes/wq/functions.php on line 116

CI框架中仿佛只有select语句才能取得compile的sql语句,但是下面的代码却可以取得最后一次执行的sql语句,进而输出。

echo $this->db->last_query();

本站原创,欢迎转载,转载敬请标明出处:天使漫步IT工作室 » CI框架输出sql语句
添加新评论


Warning: Use of undefined constant php - assumed 'php' (this will throw an Error in a future version of PHP) in /www/wwwroot/u11u.com/usr/themes/wq/comments.php on line 38