网友收藏sql分组统计查询 count带条件_sql语句count带条件查询-CSDN博客文章浏览阅读3.7w次,点赞2次,收藏11次。sql分组统计查询 count带条件// count括号里带统计条件SELECT user_id,count(type=1 or null) donate_num,count(type=2 or null) rent_numFROM ot_dynamic GROUP BY user_id_sql语句count带条件查询... 2024-01-24 23:50 评论 0 阅读 阅读全文