多表查询下的where条件

浏览:958 发布日期:2017/09/29 分类:求助交流
$list=db('shop_goods')->alias('a')->
join('task b','b.shop_name_id=a.num_iid')->
join('task_goods c','c.gid=a.num_iid')->
where('c.member','gt',0)->
select();
还是
$list=db('shop_goods')->alias('a')->
join('task b','b.shop_name_id=a.num_iid')->
join('task_goods c','c.gid=a.num_iid')->
where('c.member > 0')->
select();
都查询不到,请问多表查询的where该怎么写
最佳答案
评论( 相关
后面还有条评论,点击查看>>