select FROM_UNIXTIME(start_time,'%Y-%m-%d')as date,COUNT(*) FROM random_num GROUP BY FROM_UNIXTIME(start_time,'%Y-%m-%d')  

sql解释:在 random_num 表中将 start_time 按照 Y-m-d 的格式 进行分组,统计每天的数据条数

 

相关文章:

  • 2021-10-03
  • 2021-06-07
  • 2021-08-16
  • 2021-11-26
  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-04
  • 2022-02-08
  • 2022-12-23
  • 2021-12-31
  • 2021-10-12
相关资源
相似解决方案