mogodb的aggregat根据条件统计总数

mogodb的aggregat根据条件统计总数

解决方法:

假如现在mogodb的一张表的名字为table_name,字段scid,sendtimesec,sendcount,successtype,统计scid为123456, sendtimesec在2018-10-15 07:59:00和2018-10-15 08:00:59之间的记录的sendcount的和,sendcount是别名,随便起名,查询语句:http://www.yayihouse.com/yayishuwu/c​hapter/1634

猜你喜欢

转载自blog.csdn.net/qq_30908729/article/details/83055922