Loading...

TDEngine查询技巧

-- 查询超级表有多少个子表
select tbname from electricmeter [ where tbname in ( 'd001947' )];

-- 查所有电表某小时最新电量
select ts,last(imp_ep) from electricmeter where ts < 1602378000000 group by device;
posted @ 2020-10-15 14:31  choizzzi  阅读(3690)  评论(0编辑  收藏  举报