查询上一个tp语句

    $model->getLastSql();

原文地址:https://www.cnblogs.com/wanlibingfeng/p/5821683.html