20-keywords.md 3.0 KB
Newer Older
G
gccgdb1234 已提交
1
---
G
gccgdb1234 已提交
2
sidebar_label: 保留关键字
G
gccgdb1234 已提交
3
title: 保留关键字
4
description: TDengine 保留关键字的详细列表
G
gccgdb1234 已提交
5 6 7 8
---

## 保留关键字

9 10
目前 TDengine 有 200 多个内部保留关键字,这些关键字如果需要用作库名、表名、超级表名、子表名、数据列名及标签列名等,无论大小写,需要使用符号 `` ` `` 将关键字括起来使用,例如 \`ADD\`

D
dapan1121 已提交
11
关键字列表如下:
G
gccgdb1234 已提交
12

13 14 15 16 17 18 19
### A

- ABORT
- ACCOUNT
- ACCOUNTS
- ADD
- AFTER
20
- AGGREGATE
A
Alex Duan 已提交
21
- ALIVE
22 23
- ALL
- ALTER
24
- ANALYZE
25
- AND
26
- APPS
27 28
- AS
- ASC
29
- AT_ONCE
30 31 32 33
- ATTACH

### B

34
- BALANCE
35 36 37 38 39 40 41 42 43
- BEFORE
- BEGIN
- BETWEEN
- BIGINT
- BINARY
- BITAND
- BITNOT
- BITOR
- BLOCKS
44 45
- BNODE
- BNODES
46
- BOOL
47 48
- BUFFER
- BUFSIZE
49 50 51 52 53
- BY

### C

- CACHE
54 55
- CACHEMODEL
- CACHESIZE
56
- CASCADE
57
- CAST
58
- CHANGE
59
- CLIENT_VERSION
60 61 62 63
- CLUSTER
- COLON
- COLUMN
- COMMA
64
- COMMENT
65 66 67 68 69 70 71
- COMP
- COMPACT
- CONCAT
- CONFLICT
- CONNECTION
- CONNECTIONS
- CONNS
72 73 74
- CONSUMER
- CONSUMERS
- CONTAINS
75
- COPY
76
- COUNT
77
- CREATE
78
- CURRENT_USER
79 80 81

### D

G
gccgdb1234 已提交
82 83 84 85
- DATABASE
- DATABASES
- DBS
- DEFERRED
86 87
- DELETE
- DELIMITERS
G
gccgdb1234 已提交
88 89 90 91
- DESC
- DESCRIBE
- DETACH
- DISTINCT
92
- DISTRIBUTED
G
gccgdb1234 已提交
93 94 95 96 97 98
- DIVIDE
- DNODE
- DNODES
- DOT
- DOUBLE
- DROP
99
- DURATION
100 101 102

### E

103 104
- EACH
- ENABLE
G
gccgdb1234 已提交
105
- END
106
- EVERY
G
gccgdb1234 已提交
107
- EXISTS
108
- EXPIRED
G
gccgdb1234 已提交
109
- EXPLAIN
110 111 112

### F

G
gccgdb1234 已提交
113 114 115
- FAIL
- FILE
- FILL
116
- FIRST
G
gccgdb1234 已提交
117
- FLOAT
118
- FLUSH
G
gccgdb1234 已提交
119 120
- FOR
- FROM
121 122
- FUNCTION
- FUNCTIONS
123 124 125

### G

G
gccgdb1234 已提交
126
- GLOB
127
- GRANT
128
- GRANTS
G
gccgdb1234 已提交
129
- GROUP
130 131 132

### H

G
gccgdb1234 已提交
133
- HAVING
134 135 136 137 138

### I

- ID
- IF
G
gccgdb1234 已提交
139
- IGNORE
140
- IMMEDIATE
G
gccgdb1234 已提交
141 142
- IMPORT
- IN
143 144 145 146
- INDEX
- INDEXES
- INITIALLY
- INNER
G
gccgdb1234 已提交
147
- INSERT
148
- INSTEAD
G
gccgdb1234 已提交
149
- INT
150
- INTEGER
151
- INTERVAL
G
gccgdb1234 已提交
152 153 154
- INTO
- IS
- ISNULL
155 156 157 158

### J

- JOIN
159
- JSON
160 161 162 163

### K

- KEEP
G
gccgdb1234 已提交
164
- KEY
165 166 167 168
- KILL

### L

169 170 171
- LAST
- LAST_ROW
- LICENCES
G
gccgdb1234 已提交
172 173
- LIKE
- LIMIT
174
- LINEAR
G
gccgdb1234 已提交
175
- LOCAL
176 177 178

### M

G
gccgdb1234 已提交
179
- MATCH
180
- MAX_DELAY
D
dapan1121 已提交
181
- MAX_SPEED
G
gccgdb1234 已提交
182
- MAXROWS
183 184
- MERGE
- META
G
gccgdb1234 已提交
185 186
- MINROWS
- MINUS
187
- MNODE
G
gccgdb1234 已提交
188 189 190
- MNODES
- MODIFY
- MODULES
191 192 193

### N

194 195 196
- NCHAR
- NEXT
- NMATCH
G
gccgdb1234 已提交
197 198
- NONE
- NOT
199
- NOTNULL
G
gccgdb1234 已提交
200
- NOW
201
- NULL
202
- NULLS
203 204 205

### O

G
gccgdb1234 已提交
206
- OF
207
- OFFSET
208
- ON
G
gccgdb1234 已提交
209 210
- OR
- ORDER
211
- OUTPUTTYPE
212 213 214

### P

215 216 217
- PAGES
- PAGESIZE
- PARTITIONS
G
gccgdb1234 已提交
218 219
- PASS
- PLUS
220
- PORT
G
gccgdb1234 已提交
221
- PPS
222
- PRECISION
G
gccgdb1234 已提交
223
- PREV
224 225 226 227
- PRIVILEGE

### Q

228 229
- QNODE
- QNODES
G
gccgdb1234 已提交
230
- QTIME
231
- QUERIES
G
gccgdb1234 已提交
232
- QUERY
233 234 235

### R

G
gccgdb1234 已提交
236
- RAISE
237 238 239 240 241
- RANGE
- RATIO
- READ
- REDISTRIBUTE
- RENAME
242 243
- REPLACE
- REPLICA
G
gccgdb1234 已提交
244
- RESET
245 246 247 248
- RESTRICT
- RETENTIONS
- REVOKE
- ROLLUP
G
gccgdb1234 已提交
249
- ROW
250 251 252

### S

253
- SCHEMALESS
G
gccgdb1234 已提交
254 255 256
- SCORES
- SELECT
- SEMI
257 258
- SERVER_STATUS
- SERVER_VERSION
259
- SESSION
G
gccgdb1234 已提交
260 261
- SET
- SHOW
262
- SINGLE_STABLE
263
- SLIDING
G
gccgdb1234 已提交
264
- SLIMIT
265 266 267 268
- SMA
- SMALLINT
- SNODE
- SNODES
269
- SOFFSET
270 271 272
- SPLIT
- STABLE
- STABLES
Y
Yiqing Liu 已提交
273
- START
G
gccgdb1234 已提交
274
- STATE
275 276
- STATE_WINDOW
- STATEMENT
G
gccgdb1234 已提交
277 278 279
- STORAGE
- STREAM
- STREAMS
280
- STRICT
G
gccgdb1234 已提交
281
- STRING
282
- SUBSCRIPTIONS
G
gccgdb1234 已提交
283
- SYNCDB
284
- SYSINFO
285 286 287

### T

G
gccgdb1234 已提交
288 289 290 291 292 293 294
- TABLE
- TABLES
- TAG
- TAGS
- TBNAME
- TIMES
- TIMESTAMP
295
- TIMEZONE
G
gccgdb1234 已提交
296
- TINYINT
297 298
- TO
- TODAY
G
gccgdb1234 已提交
299 300
- TOPIC
- TOPICS
301 302
- TRANSACTION
- TRANSACTIONS
G
gccgdb1234 已提交
303
- TRIGGER
304
- TRIM
G
gccgdb1234 已提交
305
- TSERIES
D
dapan1121 已提交
306
- TTL
307 308 309

### U

G
gccgdb1234 已提交
310 311 312 313 314 315 316
- UNION
- UNSIGNED
- UPDATE
- USE
- USER
- USERS
- USING
317 318 319

### V

K
kynowoo 已提交
320
- VALUE
G
gccgdb1234 已提交
321
- VALUES
322
- VARCHAR
G
gccgdb1234 已提交
323
- VARIABLE
324
- VARIABLES
325 326
- VERBOSE
- VGROUP
G
gccgdb1234 已提交
327 328 329
- VGROUPS
- VIEW
- VNODES
330 331 332 333

### W

- WAL
334 335 336 337 338
- WAL_FSYNC_PERIOD
- WAL_LEVEL
- WAL_RETENTION_PERIOD
- WAL_RETENTION_SIZE
- WATERMARK
339
- WHERE
340 341 342
- WINDOW_CLOSE
- WITH
- WRITE
343

G
gccgdb1234 已提交
344 345 346
### \_

- \_C0
G
Ganlin Zhao 已提交
347
- \_IROWTS
G
gccgdb1234 已提交
348
- \_QDURATION
349 350 351
- \_QEND
- \_QSTART
- \_ROWTS
G
gccgdb1234 已提交
352
- \_WDURATION
353 354
- \_WEND
- \_WSTART