多个表条件查询数据,要求主表的数据不论其它表有没有关联数据都能显示

SELECT a.id,a.c_txt,count(c.wbcontent_id) as count,a.create_time,b.wb_name as typeName FROM wb_content a
Left Join wb_main b ON a.wb_id = b.wb_id
Left Join wb_content_hit c ON a.id = c.wbcontent_id
where c.hit_time>‘2020-05-05 08:57:41’ and c.state=1
GROUP BY a.id
order by count desc
多个表条件查询数据,要求主表的数据不论其它表有没有关联数据都能显示
把后面的where 改成and
多个表条件查询数据,要求主表的数据不论其它表有没有关联数据都能显示多个表条件查询数据,要求主表的数据不论其它表有没有关联数据都能显示