Update 02-influxdb-line.mdx

This commit is contained in:
WANG MINGMING 2022-09-30 14:25:49 +08:00 committed by GitHub
parent 1f57a5a1cc
commit a090fbfc0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -67,6 +67,9 @@ meters,location=California.LosAngeles,groupid=2 current=13.4,voltage=223,phase=0
</TabItem>
</Tabs>
## 查询示例
比如查询 location=California.LosAngeles,groupid=2 子表的数据可以通过如下sql
select * from meters where location=California.LosAngeles and groupid=2
## SQL查询示例
- meters 是插入数据的超级表名
- 可以通过超级表的tag来过滤数据比如查询 `location=California.LosAngeles,groupid=2` 可以通过如下sql
``` cmd
select * from meters where location="California.LosAngeles" and groupid=2
```