1、fetchSql用于直接返回SQL而不是执行查询,适用于任何的CURD操作方法。 例如:
$result = Db::table('think_user')->fetchSql(true)->find(1);
输出result结果为: SELECT * FROM think_user where id = 1

相关文章:

  • 2021-11-30
  • 2021-12-05
  • 2021-12-18
  • 2021-12-29
  • 2021-12-10
  • 2021-11-19
  • 2021-11-18
  • 2021-12-07
猜你喜欢
  • 2022-12-23
  • 2021-06-26
  • 2021-07-21
  • 2022-12-23
  • 2022-03-06
  • 2021-12-04
相关资源
相似解决方案