THINKPHP 调试------输出sql语句

echo $model->getLastSql();//$model为实例化的模板类

原文地址:https://www.cnblogs.com/disneyland/p/4264526.html