开发框架 版主:迅睿框架研发组
多个where条件使用这种语法不能用,要怎么编写
类型:迅睿CMS 更新时间:2021-01-06 18:13:42
$data = $this->table($this->tablename)->where(['uid'=>(int)$data['uid'],'cid'=>$data['cid'],'module'=>$data['module']])->getRow();

多个where条件使用这种语法不能用,要怎么编写

回帖
  • 迅睿粉丝
    #1楼    迅睿粉丝
    2020-05-15 16:11:04
    Chrome 0
    $this->table($this->tablename)->where('uid', (int)$data['uid'])->where('cid', $data['cid'])->where('module', $data['module'])->getRow();

    链式查询都是and的关系

    满意答案
  • 迅睿粉丝
    #2楼    迅睿粉丝
    2020-05-15 16:56:52
    Chrome 0
    ci可以接两个where 很方便的
  • 迅睿粉丝
    #3楼    迅睿粉丝
    2021-01-06 18:13:42
    Chrome 0
    迅睿框架创始人:谢谢帮助