YII2 查询语句

find和findOne区别 findONe对ID 返回该ID的数据 find()方法 ->select()查找需要返回的字段 ->where(‘in’,‘id’,$id)条件,有in,not in, and,not and,between,not between,or 等等 ->andwhere()添加多一个条件 ->filterWhere()过滤 ->andFilterWhere()添加多一个
相关文章
相关标签/搜索