未验证 提交 a34c6852 编写于 作者: W wade zhang 提交者: GitHub

Merge pull request #16841 from arielyang/docs/yangpan-update-keywords

docs: update latest reserved SQL keywords
...@@ -5,7 +5,9 @@ title: Reserved Keywords ...@@ -5,7 +5,9 @@ title: Reserved Keywords
## Keyword List ## Keyword List
There are about 200 keywords reserved by TDengine, they can't be used as the name of database, STable or table with either upper case, lower case or mixed case. The following list shows all reserved keywords: There are more than 200 keywords reserved by TDengine, they can't be used as the name of database, table, STable, subtable, column or tag with either upper case, lower case or mixed case. If you need to use these keywords, use the symbol `` ` `` to enclose the keywords, e.g. \`ADD\`.
The following list shows all reserved keywords:
### A ### A
...@@ -14,15 +16,20 @@ There are about 200 keywords reserved by TDengine, they can't be used as the nam ...@@ -14,15 +16,20 @@ There are about 200 keywords reserved by TDengine, they can't be used as the nam
- ACCOUNTS - ACCOUNTS
- ADD - ADD
- AFTER - AFTER
- AGGREGATE
- ALL - ALL
- ALTER - ALTER
- ANALYZE
- AND - AND
- APPS
- AS - AS
- ASC - ASC
- AT_ONCE
- ATTACH - ATTACH
### B ### B
- BALANCE
- BEFORE - BEFORE
- BEGIN - BEGIN
- BETWEEN - BETWEEN
...@@ -32,19 +39,27 @@ There are about 200 keywords reserved by TDengine, they can't be used as the nam ...@@ -32,19 +39,27 @@ There are about 200 keywords reserved by TDengine, they can't be used as the nam
- BITNOT - BITNOT
- BITOR - BITOR
- BLOCKS - BLOCKS
- BNODE
- BNODES
- BOOL - BOOL
- BUFFER
- BUFSIZE
- BY - BY
### C ### C
- CACHE - CACHE
- CACHELAST - CACHEMODEL
- CACHESIZE
- CASCADE - CASCADE
- CAST
- CHANGE - CHANGE
- CLIENT_VERSION
- CLUSTER - CLUSTER
- COLON - COLON
- COLUMN - COLUMN
- COMMA - COMMA
- COMMENT
- COMP - COMP
- COMPACT - COMPACT
- CONCAT - CONCAT
...@@ -52,15 +67,18 @@ There are about 200 keywords reserved by TDengine, they can't be used as the nam ...@@ -52,15 +67,18 @@ There are about 200 keywords reserved by TDengine, they can't be used as the nam
- CONNECTION - CONNECTION
- CONNECTIONS - CONNECTIONS
- CONNS - CONNS
- CONSUMER
- CONSUMERS
- CONTAINS
- COPY - COPY
- COUNT
- CREATE - CREATE
- CTIME - CURRENT_USER
### D ### D
- DATABASE - DATABASE
- DATABASES - DATABASES
- DAYS
- DBS - DBS
- DEFERRED - DEFERRED
- DELETE - DELETE
...@@ -69,18 +87,23 @@ There are about 200 keywords reserved by TDengine, they can't be used as the nam ...@@ -69,18 +87,23 @@ There are about 200 keywords reserved by TDengine, they can't be used as the nam
- DESCRIBE - DESCRIBE
- DETACH - DETACH
- DISTINCT - DISTINCT
- DISTRIBUTED
- DIVIDE - DIVIDE
- DNODE - DNODE
- DNODES - DNODES
- DOT - DOT
- DOUBLE - DOUBLE
- DROP - DROP
- DURATION
### E ### E
- EACH
- ENABLE
- END - END
- EQ - EVERY
- EXISTS - EXISTS
- EXPIRED
- EXPLAIN - EXPLAIN
### F ### F
...@@ -88,18 +111,20 @@ There are about 200 keywords reserved by TDengine, they can't be used as the nam ...@@ -88,18 +111,20 @@ There are about 200 keywords reserved by TDengine, they can't be used as the nam
- FAIL - FAIL
- FILE - FILE
- FILL - FILL
- FIRST
- FLOAT - FLOAT
- FLUSH
- FOR - FOR
- FROM - FROM
- FSYNC - FUNCTION
- FUNCTIONS
### G ### G
- GE
- GLOB - GLOB
- GRANT
- GRANTS - GRANTS
- GROUP - GROUP
- GT
### H ### H
...@@ -110,15 +135,18 @@ There are about 200 keywords reserved by TDengine, they can't be used as the nam ...@@ -110,15 +135,18 @@ There are about 200 keywords reserved by TDengine, they can't be used as the nam
- ID - ID
- IF - IF
- IGNORE - IGNORE
- IMMEDIA - IMMEDIATE
- IMPORT - IMPORT
- IN - IN
- INITIAL - INDEX
- INDEXES
- INITIALLY
- INNER
- INSERT - INSERT
- INSTEAD - INSTEAD
- INT - INT
- INTEGER - INTEGER
- INTERVA - INTERVAL
- INTO - INTO
- IS - IS
- ISNULL - ISNULL
...@@ -126,6 +154,7 @@ There are about 200 keywords reserved by TDengine, they can't be used as the nam ...@@ -126,6 +154,7 @@ There are about 200 keywords reserved by TDengine, they can't be used as the nam
### J ### J
- JOIN - JOIN
- JSON
### K ### K
...@@ -135,46 +164,57 @@ There are about 200 keywords reserved by TDengine, they can't be used as the nam ...@@ -135,46 +164,57 @@ There are about 200 keywords reserved by TDengine, they can't be used as the nam
### L ### L
- LE - LAST
- LAST_ROW
- LICENCES
- LIKE - LIKE
- LIMIT - LIMIT
- LINEAR - LINEAR
- LOCAL - LOCAL
- LP
- LSHIFT
- LT
### M ### M
- MATCH - MATCH
- MAX_DELAY
- MAXROWS - MAXROWS
- MERGE
- META
- MINROWS - MINROWS
- MINUS - MINUS
- MNODE
- MNODES - MNODES
- MODIFY - MODIFY
- MODULES - MODULES
### N ### N
- NE - NCHAR
- NEXT
- NMATCH
- NONE - NONE
- NOT - NOT
- NOTNULL - NOTNULL
- NOW - NOW
- NULL - NULL
- NULLS
### O ### O
- OF - OF
- OFFSET - OFFSET
- ON
- OR - OR
- ORDER - ORDER
- OUTPUTTYPE
### P ### P
- PARTITION - PAGES
- PAGESIZE
- PARTITIONS
- PASS - PASS
- PLUS - PLUS
- PORT
- PPS - PPS
- PRECISION - PRECISION
- PREV - PREV
...@@ -182,47 +222,63 @@ There are about 200 keywords reserved by TDengine, they can't be used as the nam ...@@ -182,47 +222,63 @@ There are about 200 keywords reserved by TDengine, they can't be used as the nam
### Q ### Q
- QNODE
- QNODES
- QTIME - QTIME
- QUERIE - QUERIES
- QUERY - QUERY
- QUORUM
### R ### R
- RAISE - RAISE
- REM - RANGE
- RATIO
- READ
- REDISTRIBUTE
- RENAME
- REPLACE - REPLACE
- REPLICA - REPLICA
- RESET - RESET
- RESTRIC - RESTRICT
- RETENTIONS
- REVOKE
- ROLLUP
- ROW - ROW
- RP
- RSHIFT
### S ### S
- SCHEMALESS
- SCORES - SCORES
- SELECT - SELECT
- SEMI - SEMI
- SERVER_STATUS
- SERVER_VERSION
- SESSION - SESSION
- SET - SET
- SHOW - SHOW
- SLASH - SINGLE_STABLE
- SLIDING - SLIDING
- SLIMIT - SLIMIT
- SMALLIN - SMA
- SMALLINT
- SNODE
- SNODES
- SOFFSET - SOFFSET
- STable - SPLIT
- STableS - STABLE
- STABLES
- STAR - STAR
- STATE - STATE
- STATEMEN - STATE_WINDOW
- STATE_WI - STATEMENT
- STORAGE - STORAGE
- STREAM - STREAM
- STREAMS - STREAMS
- STRICT
- STRING - STRING
- SUBSCRIPTIONS
- SYNCDB - SYNCDB
- SYSINFO
### T ### T
...@@ -233,20 +289,24 @@ There are about 200 keywords reserved by TDengine, they can't be used as the nam ...@@ -233,20 +289,24 @@ There are about 200 keywords reserved by TDengine, they can't be used as the nam
- TBNAME - TBNAME
- TIMES - TIMES
- TIMESTAMP - TIMESTAMP
- TIMEZONE
- TINYINT - TINYINT
- TO
- TODAY
- TOPIC - TOPIC
- TOPICS - TOPICS
- TRANSACTION
- TRANSACTIONS
- TRIGGER - TRIGGER
- TRIM
- TSERIES - TSERIES
- TTL - TTL
### U ### U
- UMINUS
- UNION - UNION
- UNSIGNED - UNSIGNED
- UPDATE - UPDATE
- UPLUS
- USE - USE
- USER - USER
- USERS - USERS
...@@ -256,8 +316,11 @@ There are about 200 keywords reserved by TDengine, they can't be used as the nam ...@@ -256,8 +316,11 @@ There are about 200 keywords reserved by TDengine, they can't be used as the nam
- VALUE - VALUE
- VALUES - VALUES
- VARCHAR
- VARIABLE - VARIABLE
- VARIABLES - VARIABLES
- VERBOSE
- VGROUP
- VGROUPS - VGROUPS
- VIEW - VIEW
- VNODES - VNODES
...@@ -265,14 +328,25 @@ There are about 200 keywords reserved by TDengine, they can't be used as the nam ...@@ -265,14 +328,25 @@ There are about 200 keywords reserved by TDengine, they can't be used as the nam
### W ### W
- WAL - WAL
- WAL_FSYNC_PERIOD
- WAL_LEVEL
- WAL_RETENTION_PERIOD
- WAL_RETENTION_SIZE
- WAL_ROLL_PERIOD
- WAL_SEGMENT_SIZE
- WATERMARK
- WHERE - WHERE
- WINDOW_CLOSE
- WITH
- WRITE
### \_ ### \_
- \_C0 - \_C0
- \_QSTART
- \_QSTOP
- \_QDURATION - \_QDURATION
- \_WSTART - \_QEND
- \_WSTOP - \_QSTART
- \_ROWTS
- \_WDURATION - \_WDURATION
- \_WEND
- \_WSTART
...@@ -6,7 +6,8 @@ description: TDengine 保留关键字的详细列表 ...@@ -6,7 +6,8 @@ description: TDengine 保留关键字的详细列表
## 保留关键字 ## 保留关键字
目前 TDengine 有将近 200 个内部保留关键字,这些关键字无论大小写如果需要用作库名、表名、STable 名、数据列名及标签列名等,需要使用符号 `` ` `` 将关键字括起来使用,例如 \`ADD\` 目前 TDengine 有 200 多个内部保留关键字,这些关键字如果需要用作库名、表名、超级表名、子表名、数据列名及标签列名等,无论大小写,需要使用符号 `` ` `` 将关键字括起来使用,例如 \`ADD\`
关键字列表如下: 关键字列表如下:
### A ### A
...@@ -16,15 +17,20 @@ description: TDengine 保留关键字的详细列表 ...@@ -16,15 +17,20 @@ description: TDengine 保留关键字的详细列表
- ACCOUNTS - ACCOUNTS
- ADD - ADD
- AFTER - AFTER
- AGGREGATE
- ALL - ALL
- ALTER - ALTER
- ANALYZE
- AND - AND
- APPS
- AS - AS
- ASC - ASC
- AT_ONCE
- ATTACH - ATTACH
### B ### B
- BALANCE
- BEFORE - BEFORE
- BEGIN - BEGIN
- BETWEEN - BETWEEN
...@@ -34,19 +40,27 @@ description: TDengine 保留关键字的详细列表 ...@@ -34,19 +40,27 @@ description: TDengine 保留关键字的详细列表
- BITNOT - BITNOT
- BITOR - BITOR
- BLOCKS - BLOCKS
- BNODE
- BNODES
- BOOL - BOOL
- BUFFER
- BUFSIZE
- BY - BY
### C ### C
- CACHE - CACHE
- CACHELAST - CACHEMODEL
- CACHESIZE
- CASCADE - CASCADE
- CAST
- CHANGE - CHANGE
- CLIENT_VERSION
- CLUSTER - CLUSTER
- COLON - COLON
- COLUMN - COLUMN
- COMMA - COMMA
- COMMENT
- COMP - COMP
- COMPACT - COMPACT
- CONCAT - CONCAT
...@@ -54,15 +68,18 @@ description: TDengine 保留关键字的详细列表 ...@@ -54,15 +68,18 @@ description: TDengine 保留关键字的详细列表
- CONNECTION - CONNECTION
- CONNECTIONS - CONNECTIONS
- CONNS - CONNS
- CONSUMER
- CONSUMERS
- CONTAINS
- COPY - COPY
- COUNT
- CREATE - CREATE
- CTIME - CURRENT_USER
### D ### D
- DATABASE - DATABASE
- DATABASES - DATABASES
- DAYS
- DBS - DBS
- DEFERRED - DEFERRED
- DELETE - DELETE
...@@ -71,18 +88,23 @@ description: TDengine 保留关键字的详细列表 ...@@ -71,18 +88,23 @@ description: TDengine 保留关键字的详细列表
- DESCRIBE - DESCRIBE
- DETACH - DETACH
- DISTINCT - DISTINCT
- DISTRIBUTED
- DIVIDE - DIVIDE
- DNODE - DNODE
- DNODES - DNODES
- DOT - DOT
- DOUBLE - DOUBLE
- DROP - DROP
- DURATION
### E ### E
- EACH
- ENABLE
- END - END
- EQ - EVERY
- EXISTS - EXISTS
- EXPIRED
- EXPLAIN - EXPLAIN
### F ### F
...@@ -90,18 +112,20 @@ description: TDengine 保留关键字的详细列表 ...@@ -90,18 +112,20 @@ description: TDengine 保留关键字的详细列表
- FAIL - FAIL
- FILE - FILE
- FILL - FILL
- FIRST
- FLOAT - FLOAT
- FLUSH
- FOR - FOR
- FROM - FROM
- FSYNC - FUNCTION
- FUNCTIONS
### G ### G
- GE
- GLOB - GLOB
- GRANT
- GRANTS - GRANTS
- GROUP - GROUP
- GT
### H ### H
...@@ -112,15 +136,18 @@ description: TDengine 保留关键字的详细列表 ...@@ -112,15 +136,18 @@ description: TDengine 保留关键字的详细列表
- ID - ID
- IF - IF
- IGNORE - IGNORE
- IMMEDIA - IMMEDIATE
- IMPORT - IMPORT
- IN - IN
- INITIAL - INDEX
- INDEXES
- INITIALLY
- INNER
- INSERT - INSERT
- INSTEAD - INSTEAD
- INT - INT
- INTEGER - INTEGER
- INTERVA - INTERVAL
- INTO - INTO
- IS - IS
- ISNULL - ISNULL
...@@ -128,6 +155,7 @@ description: TDengine 保留关键字的详细列表 ...@@ -128,6 +155,7 @@ description: TDengine 保留关键字的详细列表
### J ### J
- JOIN - JOIN
- JSON
### K ### K
...@@ -137,46 +165,57 @@ description: TDengine 保留关键字的详细列表 ...@@ -137,46 +165,57 @@ description: TDengine 保留关键字的详细列表
### L ### L
- LE - LAST
- LAST_ROW
- LICENCES
- LIKE - LIKE
- LIMIT - LIMIT
- LINEAR - LINEAR
- LOCAL - LOCAL
- LP
- LSHIFT
- LT
### M ### M
- MATCH - MATCH
- MAX_DELAY
- MAXROWS - MAXROWS
- MERGE
- META
- MINROWS - MINROWS
- MINUS - MINUS
- MNODE
- MNODES - MNODES
- MODIFY - MODIFY
- MODULES - MODULES
### N ### N
- NE - NCHAR
- NEXT
- NMATCH
- NONE - NONE
- NOT - NOT
- NOTNULL - NOTNULL
- NOW - NOW
- NULL - NULL
- NULLS
### O ### O
- OF - OF
- OFFSET - OFFSET
- ON
- OR - OR
- ORDER - ORDER
- OUTPUTTYPE
### P ### P
- PARTITION - PAGES
- PAGESIZE
- PARTITIONS
- PASS - PASS
- PLUS - PLUS
- PORT
- PPS - PPS
- PRECISION - PRECISION
- PREV - PREV
...@@ -184,47 +223,63 @@ description: TDengine 保留关键字的详细列表 ...@@ -184,47 +223,63 @@ description: TDengine 保留关键字的详细列表
### Q ### Q
- QNODE
- QNODES
- QTIME - QTIME
- QUERIE - QUERIES
- QUERY - QUERY
- QUORUM
### R ### R
- RAISE - RAISE
- REM - RANGE
- RATIO
- READ
- REDISTRIBUTE
- RENAME
- REPLACE - REPLACE
- REPLICA - REPLICA
- RESET - RESET
- RESTRIC - RESTRICT
- RETENTIONS
- REVOKE
- ROLLUP
- ROW - ROW
- RP
- RSHIFT
### S ### S
- SCHEMALESS
- SCORES - SCORES
- SELECT - SELECT
- SEMI - SEMI
- SERVER_STATUS
- SERVER_VERSION
- SESSION - SESSION
- SET - SET
- SHOW - SHOW
- SLASH - SINGLE_STABLE
- SLIDING - SLIDING
- SLIMIT - SLIMIT
- SMALLIN - SMA
- SMALLINT
- SNODE
- SNODES
- SOFFSET - SOFFSET
- STable - SPLIT
- STableS - STABLE
- STABLES
- STAR - STAR
- STATE - STATE
- STATEMEN - STATE_WINDOW
- STATE_WI - STATEMENT
- STORAGE - STORAGE
- STREAM - STREAM
- STREAMS - STREAMS
- STRICT
- STRING - STRING
- SUBSCRIPTIONS
- SYNCDB - SYNCDB
- SYSINFO
### T ### T
...@@ -235,20 +290,24 @@ description: TDengine 保留关键字的详细列表 ...@@ -235,20 +290,24 @@ description: TDengine 保留关键字的详细列表
- TBNAME - TBNAME
- TIMES - TIMES
- TIMESTAMP - TIMESTAMP
- TIMEZONE
- TINYINT - TINYINT
- TO
- TODAY
- TOPIC - TOPIC
- TOPICS - TOPICS
- TRANSACTION
- TRANSACTIONS
- TRIGGER - TRIGGER
- TRIM
- TSERIES - TSERIES
- TTL - TTL
### U ### U
- UMINUS
- UNION - UNION
- UNSIGNED - UNSIGNED
- UPDATE - UPDATE
- UPLUS
- USE - USE
- USER - USER
- USERS - USERS
...@@ -258,8 +317,11 @@ description: TDengine 保留关键字的详细列表 ...@@ -258,8 +317,11 @@ description: TDengine 保留关键字的详细列表
- VALUE - VALUE
- VALUES - VALUES
- VARCHAR
- VARIABLE - VARIABLE
- VARIABLES - VARIABLES
- VERBOSE
- VGROUP
- VGROUPS - VGROUPS
- VIEW - VIEW
- VNODES - VNODES
...@@ -267,14 +329,25 @@ description: TDengine 保留关键字的详细列表 ...@@ -267,14 +329,25 @@ description: TDengine 保留关键字的详细列表
### W ### W
- WAL - WAL
- WAL_FSYNC_PERIOD
- WAL_LEVEL
- WAL_RETENTION_PERIOD
- WAL_RETENTION_SIZE
- WAL_ROLL_PERIOD
- WAL_SEGMENT_SIZE
- WATERMARK
- WHERE - WHERE
- WINDOW_CLOSE
- WITH
- WRITE
### \_ ### \_
- \_C0 - \_C0
- \_QSTART
- \_QSTOP
- \_QDURATION - \_QDURATION
- \_WSTART - \_QEND
- \_WSTOP - \_QSTART
- \_ROWTS
- \_WDURATION - \_WDURATION
- \_WEND
- \_WSTART
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册