最新值如何获取?有没有专用的函数或者sql语句啊 #4067
Unanswered
skyformat99
asked this question in
Q&A
Replies: 2 comments 2 replies
This comment has been hidden.
This comment has been hidden.
-
Try select distinct on (host, idc) * from system_metrics order by host, idc, ts desc; ref to https://docs.greptime.com/user-guide/query-data/sql#find-the-latest-data-of-time-series |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What problem does the new feature solve?
最新值如何获取?有没有专用的函数或者sql语句啊?
比如说,增加一个 last函数,类似于这样的:
select last(*) from tablename;
或者 select last_row(*) from tablename;
可以参考 TaosDB啊,这个很方面。
What does the feature do?
最新值如何获取?有没有专用的函数或者sql语句啊?
比如说,增加一个 last函数,类似于这样的:
select last(*) from tablename;
或者 select last_row(*) from tablename;
可以参考 TaosDB啊,这个很方面。
Implementation challenges
No response
Beta Was this translation helpful? Give feedback.
All reactions