ssslinppp

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
创建数据表语句



数据表数据


对上述数据进行TopN排名

  1. select severity,sum(count) as sum from widgt_23 where insertTstamp>='2016-12-05 17:40:00' and insertTstamp<='2016-12-05 18:00:00' group by binary(severity) order by sum desc limit 10;


获取趋势图数据

  1. select * from widgt_23 where insertTstamp>='2016-12-05 17:40:00' and insertTstamp<='2016-12-05 18:00:00' and severity=binary('Info') ;







posted on 2016-12-06 16:32  ssslinppp  阅读(999)  评论(0编辑  收藏  举报