Update TAOS SQL-ch.md
Fix some typo and expired content in documents.
This commit is contained in:
parent
9b9ea6661a
commit
9a1d009b3a
|
@ -416,7 +416,7 @@ taos> SELECT database();
|
||||||
power |
|
power |
|
||||||
Query OK, 1 row(s) in set (0.000079s)
|
Query OK, 1 row(s) in set (0.000079s)
|
||||||
```
|
```
|
||||||
如果登录的时候没有指定默认数据库,且没有使用```use``命令切换数据,则返回NULL。
|
如果登录的时候没有指定默认数据库,且没有使用```use```命令切换数据,则返回NULL。
|
||||||
```
|
```
|
||||||
taos> SELECT database();
|
taos> SELECT database();
|
||||||
database() |
|
database() |
|
||||||
|
@ -503,10 +503,10 @@ Query OK, 1 row(s) in set (0.001091s)
|
||||||
| % | match with any char sequences | **`binary`** **`nchar`** |
|
| % | match with any char sequences | **`binary`** **`nchar`** |
|
||||||
| _ | match with a single char | **`binary`** **`nchar`** |
|
| _ | match with a single char | **`binary`** **`nchar`** |
|
||||||
|
|
||||||
1. 同时进行多个字段的范围过滤需要使用关键词AND进行连接不同的查询条件,暂不支持OR连接的查询条件。
|
1. 同时进行多个字段的范围过滤需要使用关键词AND进行连接不同的查询条件,暂不支持OR连接的不同列之间的查询过滤条件。
|
||||||
2. 针对某一字段的过滤只支持单一区间的过滤条件。例如:value>20 and value<30是合法的过滤条件, 而Value<20 AND value<>5是非法的过滤条件。
|
2. 针对某一字段的过滤只支持单一时间区间过滤条件。但是针对其他的(普通)列或标签列,可以使用``` OR``` 条件进行组合条件的查询过滤。例如:((value > 20 and value < 30) OR (value < 12)) 。
|
||||||
|
|
||||||
### Some Examples
|
### SQL 示例
|
||||||
|
|
||||||
- 对于下面的例子,表tb1用以下语句创建
|
- 对于下面的例子,表tb1用以下语句创建
|
||||||
|
|
||||||
|
@ -538,7 +538,7 @@ Query OK, 1 row(s) in set (0.001091s)
|
||||||
SELECT COUNT(*) FROM tb1 WHERE ts >= NOW - 10m AND col2 > 3.14 >> /home/testoutpu.csv;
|
SELECT COUNT(*) FROM tb1 WHERE ts >= NOW - 10m AND col2 > 3.14 >> /home/testoutpu.csv;
|
||||||
```
|
```
|
||||||
|
|
||||||
## SQL函数
|
## SQL 函数
|
||||||
|
|
||||||
### 聚合函数
|
### 聚合函数
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue