mysql 分組統計(直播內容狀態,帶上內容id),count case when group_concat sql

SELECT group_concat(case live_status when 0 then content_id end) as closed_ids, group_concat(case live_status when 1 then content_id when 2 then content_id end) as unclosed_ids, count(case live_status
相關文章
相關標籤/搜索