摘要: 在数据查询时候,多条件查询,使用场景 //单个值 $data_where['id'] = 1 // in 条件 写法一 $ids = [1,2,3,4,5]; $data_where[] = [DB::raw("字段名 in ({$ids})"),'1']; //in条件写法二 $data_wher 阅读全文
posted @ 2020-10-18 19:22 依然范儿特西 阅读(627) 评论(0) 推荐(0) 编辑