• <legend id='5DqQB'><style id='5DqQB'><dir id='5DqQB'><q id='5DqQB'></q></dir></style></legend>
  • <tfoot id='5DqQB'></tfoot>

  • <i id='5DqQB'><tr id='5DqQB'><dt id='5DqQB'><q id='5DqQB'><span id='5DqQB'><b id='5DqQB'><form id='5DqQB'><ins id='5DqQB'></ins><ul id='5DqQB'></ul><sub id='5DqQB'></sub></form><legend id='5DqQB'></legend><bdo id='5DqQB'><pre id='5DqQB'><center id='5DqQB'></center></pre></bdo></b><th id='5DqQB'></th></span></q></dt></tr></i><div id='5DqQB'><tfoot id='5DqQB'></tfoot><dl id='5DqQB'><fieldset id='5DqQB'></fieldset></dl></div>

          <bdo id='5DqQB'></bdo><ul id='5DqQB'></ul>
      1. <small id='5DqQB'></small><noframes id='5DqQB'>

        以 15 分钟为间隔对 mysql 查询进行分组

        Group mysql query by 15 min intervals(以 15 分钟为间隔对 mysql 查询进行分组)
          • <legend id='a6E5h'><style id='a6E5h'><dir id='a6E5h'><q id='a6E5h'></q></dir></style></legend>

                <bdo id='a6E5h'></bdo><ul id='a6E5h'></ul>
              • <small id='a6E5h'></small><noframes id='a6E5h'>

                <tfoot id='a6E5h'></tfoot>
                <i id='a6E5h'><tr id='a6E5h'><dt id='a6E5h'><q id='a6E5h'><span id='a6E5h'><b id='a6E5h'><form id='a6E5h'><ins id='a6E5h'></ins><ul id='a6E5h'></ul><sub id='a6E5h'></sub></form><legend id='a6E5h'></legend><bdo id='a6E5h'><pre id='a6E5h'><center id='a6E5h'></center></pre></bdo></b><th id='a6E5h'></th></span></q></dt></tr></i><div id='a6E5h'><tfoot id='a6E5h'></tfoot><dl id='a6E5h'><fieldset id='a6E5h'></fieldset></dl></div>

                  <tbody id='a6E5h'></tbody>
                1. 本文介绍了以 15 分钟为间隔对 mysql 查询进行分组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我有一个监控系统,它每 n 秒收集一次数据(n 大约为 10,但会有所不同).我想按 15 分钟的时间间隔汇总收集的数据.有没有办法将时间戳值合并为 15 分钟的块以允许分组工作?

                  I've got a monitoring system that is collecting data every n seconds (n is approximately 10 but varies). I'd like to aggregate the collected data by 15 minute intervals. Is there a way to consolidate the timestamp values into 15 minute chunks to allow for grouping to work?

                  推荐答案

                  SELECT   FLOOR(UNIX_TIMESTAMP(timestamp)/(15 * 60)) AS timekey
                  FROM     table
                  GROUP BY timekey;
                  

                  这篇关于以 15 分钟为间隔对 mysql 查询进行分组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  ibtmp1是非压缩的innodb临时表的独立表空间,通过innodb_temp_data_file_path参数指定文件的路径,文件名和大小,默认配置为ibtmp1:12M:autoextend,也就是说在文件系统磁盘足够的情况下,这个文件大小是可以无限增长的。 为了避免ibtmp1文件无止境的暴涨导致
                  SQL query to group by day(按天分组的 SQL 查询)
                  What does SQL clause quot;GROUP BY 1quot; mean?(SQL 子句“GROUP BY 1是什么意思?意思是?)
                  MySQL groupwise MAX() returns unexpected results(MySQL groupwise MAX() 返回意外结果)
                  MySQL SELECT most frequent by group(MySQL SELECT 按组最频繁)
                  Include missing months in Group By query(在 Group By 查询中包含缺失的月份)

                    <small id='v8OCJ'></small><noframes id='v8OCJ'>

                    <tfoot id='v8OCJ'></tfoot>
                      <tbody id='v8OCJ'></tbody>

                      <legend id='v8OCJ'><style id='v8OCJ'><dir id='v8OCJ'><q id='v8OCJ'></q></dir></style></legend>

                      <i id='v8OCJ'><tr id='v8OCJ'><dt id='v8OCJ'><q id='v8OCJ'><span id='v8OCJ'><b id='v8OCJ'><form id='v8OCJ'><ins id='v8OCJ'></ins><ul id='v8OCJ'></ul><sub id='v8OCJ'></sub></form><legend id='v8OCJ'></legend><bdo id='v8OCJ'><pre id='v8OCJ'><center id='v8OCJ'></center></pre></bdo></b><th id='v8OCJ'></th></span></q></dt></tr></i><div id='v8OCJ'><tfoot id='v8OCJ'></tfoot><dl id='v8OCJ'><fieldset id='v8OCJ'></fieldset></dl></div>

                        <bdo id='v8OCJ'></bdo><ul id='v8OCJ'></ul>