thinkphp如何查看find方法生成的sql语句

如图我想看一下生成的sql语句是什么
2025-04-16 13:24:21
推荐回答(2个)
回答1:

把debug模式开启,下面就有

回答2:

echo $m->getLastSql();