• <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 查询进行分组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Can#39;t Create Entity Data Model - using MySql and EF6(无法创建实体数据模型 - 使用 MySql 和 EF6)
                  MySQL select with CONCAT condition(MySQL选择与CONCAT条件)
                  Capitalize first letter of each word, in existing table(将现有表格中每个单词的首字母大写)
                  How to retrieve SQL result column value using column name in Python?(如何在 Python 中使用列名检索 SQL 结果列值?)
                  Update row with data from another row in the same table(使用同一表中另一行的数据更新行)
                  Exporting results of a Mysql query to excel?(将 Mysql 查询的结果导出到 excel?)

                    <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>