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
21 22
- ALL
- ALTER
23
- ANALYZE
24
- AND
25
- APPS
26 27
- AS
- ASC
28
- AT_ONCE
29 30 31 32
- ATTACH

### B

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

### C

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

### D

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

### E

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

### F

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

### G

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

### H

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

### I

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

### J

- JOIN
158
- JSON
159 160 161 162

### K

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

### L

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

### M

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

### N

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

### O

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

### P

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

### Q

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

### R

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

### S

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

### T

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

### U

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

### V

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

### W

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

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

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