查询列表

return User::query()
    ->where("app_id = {$app_id}")
    ->execute()->toArray();

  

查询单条

return User::findFirst([
   "app_id = {$app_id}",
])->toArray();

  

orderBy

->orderBy("id desc")

  

andWhere

orWhere

->andWhere("muid = :muid: or oaid > :oaid:",
    [
        "muid" => $muid,
        "oaid"   => $oaid,
    ])

  

whereIn

->whereIn('status', [1,2])

  

 

 

文档:https://www.kancloud.cn/taobaby365/phalcon/100044

相关文章:

  • 2021-09-29
  • 2021-06-16
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
  • 2022-01-22
  • 2021-11-28
  • 2021-07-12
猜你喜欢
  • 2021-11-24
  • 2021-06-11
  • 2022-12-23
  • 2022-02-06
  • 2021-04-01
  • 2021-11-27
  • 2021-08-11
相关资源
相似解决方案