您的位置:首页 > 数据库 > MySQL

mysql的count查询中使用条件

2014-04-02 15:48 274 查看
在mysql的count查询中加入条件,在mysql的count查询中加入条件,在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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: