【sql】按分钟统计数据

select count(*) as n,DATE_FORMAT(a_startTime,'%Y-%m-%d %H:%i:00') from `ARC_`
where a_startTime>="2022-09-09 00:00:00"  and a_startTime <= "2022-09-09 23:59:59"
GROUP BY DATE_FORMAT(a_startTime,'%Y-%m-%d %H:%i');


select count(*) as n,DATE_FORMAT(a_startTime,'%Y-%m-%d %H:%i:00')from `ARC_`
where a_startTime>="2022-09-19 00:00:00"  and a_startTime <= "2022-09-19 23:59:59"
GROUP BY DATE_FORMAT(a_startTime,'%Y-%m-%d %H:%i');


Last Updated: 2024/09/12 05:33:49
【termux】旧安卓手机做服务器等 【淘宝客】公众号用户买完产品通知用户的方案【未完待续】
OωO 取消
  • |´・ω・)ノ
  • ヾ(≧∇≦*)ゝ
  • (☆ω☆)
  • (╯‵□′)
  •  ̄﹃ ̄
  • (/ω\)
  • →_→
  • (ノ°ο°)ノ
  • ⌇●﹏●⌇
  • (ฅ´ω`ฅ)
  • φ( ̄∇ ̄o)
  • ヾ(´・ ・`。)ノ"
  • (ó﹏ò。)
  • Σ(っ °Д °;)っ
  • ( ,,´・ω・)ノ
  • ╮(╯▽╰)╭
  • (。•ˇ‸ˇ•。)
  • >﹏<
  • ( ๑´•ω•)
  • "(´っω・`。)
  • "(ㆆᴗㆆ)