21xrx.com
2024-03-19 17:11:40 Tuesday
登录
文章检索 我的文章 写文章
在tp5.1 fetchSql打印出执行的sql语句
2021-12-12 10:56:29 深夜i     --     --
php
$data = Db::table('tp_user')->fetchSql(true)->select();
 dump($data);

 

方法2
echo Db::table('tp_user)' ->getlastSql(); 输出最后一次执行的sql语句

  
  

评论区

{{item['qq_nickname']}}
()
回复
回复