今天遇到个小问题觉得挺有意思,与大家分享。

需求是这样的,对数据库中的一张表做按时间的分段统计,结果只要每个区间的数量。

select YEAR(create_time) as nian,MONTH(create_time) as yue,count(customid)  from custom_info GROUP BY nian,yue

结构是这样的,哈哈

/solr/comment/browse?q=*%3A*&wt=json&indent=true&start=0&rows=10&sort=timestamp+desc&fq=appid%3A460057&fq=%20is_nonsense%3A0%20&fq=timestamp%3A%5B%201477238400%20TO%201477929599%20%5D

相关文章:

  • 2021-11-17
  • 2022-12-23
  • 2023-01-17
  • 2022-12-23
  • 2021-12-11
  • 2022-12-23
  • 2022-01-11
  • 2021-05-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案