Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
4299403e
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
4299403e
编写于
1月 28, 2021
作者:
E
Elias Soong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[TD-2571] <docs>: add new keyword DISTINCT to select different values of tag column in super table.
上级
2dd8333c
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
47 addition
and
36 deletion
+47
-36
documentation20/webdocs/markdowndocs/TAOS SQL-ch.md
documentation20/webdocs/markdowndocs/TAOS SQL-ch.md
+11
-0
documentation20/webdocs/markdowndocs/administrator-ch.md
documentation20/webdocs/markdowndocs/administrator-ch.md
+36
-36
未找到文件。
documentation20/webdocs/markdowndocs/TAOS SQL-ch.md
浏览文件 @
4299403e
...
...
@@ -470,6 +470,17 @@ Query OK, 2 row(s) in set (0.003112s)
注意:普通表的通配符 * 中并不包含 _标签列_。
##### 获取标签列的去重取值
从 2.0.15 版本开始,支持在超级表查询标签列时,指定 distinct 关键字,这样将返回指定标签列的所有不重复取值。
```
mysql
SELECT DISTINCT tag_name FROM stb_name;
```
注意:目前 distinct 关键字只支持对超级表的标签列进行去重,而不能用于普通列。
#### 结果集列名
```
SELECT
```子句中,如果不指定返回结果集合的列名,结果集列名称默认使用```
SELECT
```子句中的表达式名称作为列名称。此外,用户可使用```
AS
```来重命名返回结果集合中列的名称。例如:
...
...
documentation20/webdocs/markdowndocs/administrator-ch.md
浏览文件 @
4299403e
...
...
@@ -452,39 +452,39 @@ TDengine的所有可执行文件默认存放在 _/usr/local/taos/bin_ 目录下
| 关键字列表 | | | | |
| ---------- | ----------- | ------------ | ---------- | --------- |
| ABLOCKS | CONNECTION | G
T | MNODES | SLIDING
|
| ABORT | CONNECTIONS |
ID | MODULES | SMALLINT
|
| ACCOUNT | COPY | I
F | NCHAR | SPREAD
|
| ACCOUNTS | COUNT | I
GNORE | NE | STABLE
|
| ADD | CREATE | I
MMEDIATE | NONE | STABLES
|
| AFTER | CTIME | IM
PORT | NOT | STAR
|
| ALL | DATABASE | I
N | NOTNULL | STATEMENT
|
| ALTER | DATABASES | IN
ITIALLY | NOW | STDDEV
|
| AND | DAYS | IN
SERT | OF | STREAM
|
| AS | DEFERRED | INS
TEAD | OFFSET | STREAMS
|
| ASC | DELIMITERS | IN
TEGER | OR | STRING
|
| ATTACH | DESC | INTE
RVAL | ORDER | SUM
|
| AVG | DESCRIBE | INT
O | PASS | TABLE
|
| BEFORE | DETACH | I
P | PERCENTILE | TABLES
|
| BEGIN | DIFF | I
S | PLUS | TAG
|
| BETWEEN | DI
VIDE | ISNULL | PRAGMA | TAGS
|
| BIGINT | D
NODE | JOIN | PREV | TBLOCKS
|
| BINARY | DNODE
S | KEEP | PRIVILEGE | TBNAME
|
| BITAND | D
OT | KEY | QUERIES | TIMES
|
| BITNOT | DO
UBLE | KILL | QUERY | TIMESTAMP
|
| BITOR | D
ROP | LAST | RAISE | TINYINT
|
| BOOL |
EACH | LE | REM | TOP
|
| BOTTOM | E
ND | LEASTSQUARES | REPLACE | TRIGGER
|
| BY | E
Q | LIKE | REPLICA | UMINUS
|
| CACHE | E
XISTS | LIMIT | RESET | UPLUS
|
| CASCADE | EX
PLAIN | LINEAR | RESTRICT | USE
|
| CHANGE |
FAIL | LOCAL | ROW | USER
|
| CLOG | F
ILL | LP | ROWS | USERS
|
| CLUSTER | FI
RST | LSHIFT | RP | USING
|
| COLON | F
LOAT | LT | RSHIFT | VALUES
|
| COLUMN | F
OR | MATCH | SCORES | VARIABLE
|
| COMMA | F
ROM | MAX | SELECT | VGROUPS
|
| COMP |
GE | METRIC | SEMI | VIEW
|
| CONCAT | G
LOB | METRICS | SET | WAVG
|
| CONFIGS | G
RANTS | MIN | SHOW | WHERE
|
| CONFLICT | GR
OUP | MINUS | SLASH |
|
| ABLOCKS | CONNECTION | G
ROUP | MINUS | SLASH
|
| ABORT | CONNECTIONS |
GT | MNODES | SLIDING
|
| ACCOUNT | COPY | I
D | MODULES | SMALLINT
|
| ACCOUNTS | COUNT | I
F | NCHAR | SPREAD
|
| ADD | CREATE | I
GNORE | NE | STABLE
|
| AFTER | CTIME | IM
MEDIATE | NONE | STABLES
|
| ALL | DATABASE | I
MPORT | NOT | STAR
|
| ALTER | DATABASES | IN
| NOTNULL | STATEMENT
|
| AND | DAYS | IN
ITIALLY | NOW | STDDEV
|
| AS | DEFERRED | INS
ERT | OF | STREAM
|
| ASC | DELIMITERS | IN
STEAD | OFFSET | STREAMS
|
| ATTACH | DESC | INTE
GER | OR | STRING
|
| AVG | DESCRIBE | INT
ERVAL | ORDER | SUM
|
| BEFORE | DETACH | I
NTO | PASS | TABLE
|
| BEGIN | DIFF | I
P | PERCENTILE | TABLES
|
| BETWEEN | DI
STINCT | IS | PLUS | TAG
|
| BIGINT | D
IVIDE | ISNULL | PRAGMA | TAGS
|
| BINARY | DNODE
| JOIN | PREV | TBLOCKS
|
| BITAND | D
NODES | KEEP | PRIVILEGE | TBNAME
|
| BITNOT | DO
T | KEY | QUERIES | TIMES
|
| BITOR | D
OUBLE | KILL | QUERY | TIMESTAMP
|
| BOOL |
DROP | LAST | RAISE | TINYINT
|
| BOTTOM | E
ACH | LE | REM | TOP
|
| BY | E
ND | LEASTSQUARES | REPLACE | TRIGGER
|
| CACHE | E
Q | LIKE | REPLICA | UMINUS
|
| CASCADE | EX
ISTS | LIMIT | RESET | UPLUS
|
| CHANGE |
EXPLAIN | LINEAR | RESTRICT | USE
|
| CLOG | F
AIL | LOCAL | ROW | USER
|
| CLUSTER | FI
LL | LP | ROWS | USERS
|
| COLON | F
IRST | LSHIFT | RP | USING
|
| COLUMN | F
LOAT | LT | RSHIFT | VALUES
|
| COMMA | F
OR | MATCH | SCORES | VARIABLE
|
| COMP |
FROM | MAX | SELECT | VGROUPS
|
| CONCAT | G
E | METRIC | SEMI | VIEW
|
| CONFIGS | G
LOB | METRICS | SET | WAVG
|
| CONFLICT | GR
ANTS | MIN | SHOW | WHERE
|
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录