英文:
How to query the devices which data has been updated for the last hour in Apache IoTDB?
问题
我目前使用的是Apache IoTDB的1.1版本,我需要找到服务器中最近更新的数据。我想知道如何查询在IoTDB中最近一小时内已更新数据的设备?我应该如何编写查询语句?
英文:
I currently use Version 1.1 of Apache IoTDB, and I need to find the recent data updated in the server. I wonder how to query the devices which data has been updated in the last hour in IoTDB? How should I write the query statement?
答案1
得分: 0
在Apache IoTDB中尝试以下查询语句:select count(s1) from root.db.** where time >= now() -1h and time < now() having count(s1) > 0 align by device
。
英文:
Try this query statement in Apache IoTDB: select count(s1) from root.db.** where time >= now() -1h and time < now() having count(s1) > 0 align by device
.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论