thinkphp5 打印sql语句,用于调试sql

   $res = Db::name('CmsArchives')->getLastSql();

echo $res;

posted @ 2020-05-29 01:12  风意不止  阅读(4663)  评论(0编辑  收藏  举报