控制器里面打印sql语句

//echo $this->getLastSql();
原文地址:https://www.cnblogs.com/yexiangwang/p/4928764.html