mysql的count查询中使用条件
很多时候我们在项目中需要在mysql的count查询中加入条件,如下例:
select count(pp_id),count(if(view_type='2',true,null )),count(if(bounce_type='1',true,null )),count(DISTINCT program_id),SUM(play_interval) from v_calculate_play where app_id=app_id
待完善.... mysql多条件查询