魏长东

weichangdong

东邪

mongodb实现多列的group

一、mongodb实现多列的group(方法1)。
类似如下SQL:
select PhoneId, hour, count(*)
from tianyc_test8
where PhoneId in ('xx','yy','zz')
group by PhoneId, hour;


1. 构建