多個表條件查詢數據,要求主表的數據不論其它表有沒有關聯數據都能顯示

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 wh
相關文章
相關標籤/搜索