2015-03-27 12:18:31 5624次浏览 1条回答 0 悬赏 2 金钱

例,以下原生SQL语句怎么用find写

select * from product where id=1 and name='3' and (del <>1 or del is null);

Product::find()
  ->andFilterWhere(['=','id',1])
  ->andFilterWhere(['=','name',3])
  ....

括号中的条件怎么写? 高手指教

您需要登录后才可以回答。登录 | 立即注册
bobysky
见习主管

bobysky

注册时间:2015-03-01
最后登录:2016-10-05
在线时长:23小时7分
  • 粉丝6
  • 金钱0
  • 威望0
  • 积分230

热门问题