时区及设置时间范围:
select * from mymeasurement where time >='2018-07-16T10:00:00Z' tz('Asia/Shanghai')
实现查询以给定字段开始的数据
select fieldName from measurementName where fieldName=~/^给定字段/;
实现查询以给定字段结束的数据
select fieldName from measurementName where fieldName=~/给定字段$/
实现查询包含给定字段数据
select fieldName from measurementName where fieldName=~/给定字段/
查询案例:
SELECT * FROM "measurementName" where time>='2021-07-02T06:34:10.029308697Z'
and fieldName=~/21$/ tz('Asia/Shanghai');