一、基础
1.1 数据类型
连接:https://docs.influxdata.com/influxdb/v1.2/write_protocols/line_protocol_reference/#data-types
二、增
三、查
1、查询最后几条数据
select * from disk group by * order by desc limit 10
3.2 查询字段数据类型
SHOW FIELD KEYS FROM device_D0002_realtime
N、疑问
- insert时手动指定的时间戳,必须要有先后顺序吗?
答案:并不需要,时间戳可以任意指定。
![](file:///C:\Users\Claves\AppData\Roaming\Tencent\Users\15216399\QQ\WinTemp\RichOle\27T1P$N6BL}T0Z0IB@CT291.png)
![](file:///C:\Users\Claves\AppData\Roaming\Tencent\Users\15216399\QQ\WinTemp\RichOle\27T1P$N6BL}T0Z0IB@CT291.png)