• 欢迎访问小杰博客网站
  • 欢迎访问小杰博客网站哦

查询订单每分钟峰值

未分类 小杰 7年前 (2017-01-06) 1409次浏览 已收录 0个评论

查询订单每分钟峰值

select count(1) as num,extract(hour from created_at) as the_hour,extract(minute from created_at) as the_minute from pay_records p where app_id=104 and created_at > ‘2017-01-05 00:00:00’ and created_at < ‘2017-01-06 00:00:00’  group by the_hour,the_minute order by num desc limit 10;


小杰博客 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:查询订单每分钟峰值
喜欢 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址