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

-- 查所有电表某小时最新电量
select ts,last(imp_ep) from electricmeter where ts < 1602378000000 group by device;

相关文章: