$sql = DemoModel::find()->getLastSql();
var_dump($sql);
[ThinkPHP]打印SQL
于 2024-01-26 17:32:59 首次发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
$sql = DemoModel::find()->getLastSql();
var_dump($sql);