好好爱自己!

postgresql 抽样查询

curl -GET 'http://****/query' --data-urlencode "db=db" --data-urlencode "q=SELECT last(reg_value) FROM  **table**  WHERE device_id='20528' and reg_addr='2061' and time>='2016-09-18 10:02:00' and time<='2016-09-18 11:02:00' group by time(5m) fill(previous) ;"

posted @ 2016-10-10 16:33  立志做一个好的程序员  阅读(645)  评论(0编辑  收藏  举报

不断学习创作,与自己快乐相处