SQL 关键字

最近更新时间:2025-09-19 14:15:21

我的收藏
腾讯云数据仓库 TCHouse-P 的 SQL 关键字可以通过函数pg_get_keywords查询获得。
SELECT * FROM pg_get_keywords();
注意:
避免使用 SQL 关键字作为腾讯云数据仓库 TCHouse-P 的对象名称。
关键字
分类代码
分类描述
abort
U
非保留
absolute
U
非保留
access
U
非保留
account
U
非保留
action
U
非保留
add
U
非保留
admin
U
非保留
after
U
非保留
aggregate
U
非保留
all
R
保留
also
U
非保留
alter
U
非保留
always
U
非保留
analyse
R
保留
analyze
R
保留
and
R
保留
any
R
保留
array
R
保留
as
R
保留
asc
R
保留
assertion
U
非保留
assignment
U
非保留
asymmetric
R
保留
at
U
非保留
attach
U
非保留
attribute
U
非保留
audit
R
保留
authorization
T
保留(可以是函数或类型)
backward
U
非保留
barrier
U
非保留
before
U
非保留
begin
U
非保留
begin_subtxn
U
非保留
between
C
非保留(不能是函数或类型)
bigint
C
非保留(不能是函数或类型)
binary
T
保留(可以是函数或类型)
bit
C
非保留(不能是函数或类型)
boolean
C
非保留(不能是函数或类型)
both
R
保留
by
U
非保留
cache
U
非保留
call
U
非保留
called
U
非保留
cascade
U
非保留
cascaded
U
非保留
case
R
保留
cast
R
保留
catalog
U
非保留
chain
U
非保留
char
C
非保留(不能是函数或类型)
character
C
非保留(不能是函数或类型)
characteristics
U
非保留
check
R
保留
checkpoint
U
非保留
checksum
U
非保留
class
U
非保留
clean
U
非保留
close
U
非保留
cluster
U
非保留
coalesce
C
非保留(不能是函数或类型)
collate
R
保留
collation
T
保留(可以是函数或类型)
column
R
保留
columns
U
非保留
comment
U
非保留
comments
U
非保留
commit
U
非保留
commit_subtxn
U
非保留
committed
U
非保留
compatible_illegal_chars
U
非保留
concurrency
U
非保留
concurrently
T
保留(可以是函数或类型)
configuration
U
非保留
conflict
U
非保留
connection
U
非保留
constraint
R
保留
constraints
U
非保留
content
U
非保留
continue
U
非保留
conversion
U
非保留
coordinator
U
非保留
copy
U
非保留
cost
U
非保留
cpu_rate_limit
U
非保留
cpuset
U
非保留
create
R
保留
cross
T
保留(可以是函数或类型)
csv
U
非保留
cube
U
非保留
current
U
非保留
current_catalog
R
保留
current_date
R
保留
current_role
R
保留
current_schema
T
保留(可以是函数或类型)
current_time
R
保留
current_timestamp
R
保留
current_user
R
保留
cursor
U
非保留
cycle
U
非保留
data
U
非保留
database
U
非保留
day
U
非保留
deallocate
U
非保留
dec
C
非保留(不能是函数或类型)
decimal
C
非保留(不能是函数或类型)
declare
U
非保留
default
R
保留
defaults
U
非保留
deferrable
R
保留
deferred
U
非保留
definer
U
非保留
delete
U
非保留
delimiter
U
非保留
delimiters
U
非保留
depends
U
非保留
desc
R
保留
detach
U
非保留
dictionary
U
非保留
direct
U
非保留
disable
U
非保留
discard
U
非保留
distinct
R
保留
distkey
U
非保留
distribute
U
非保留
distributed
U
非保留
diststyle
U
非保留
do
R
保留
document
U
非保留
domain
U
非保留
double
U
非保留
drop
U
非保留
each
U
非保留
else
R
保留
enable
U
非保留
encoding
U
非保留
encrypted
U
非保留
encryption
U
非保留
end
R
保留
enum
U
非保留
eol
U
非保留
errors
U
非保留
escape
U
非保留
event
U
非保留
except
R
保留
exchange
U
非保留
exclude
U
非保留
excluding
U
非保留
exclusive
U
非保留
execute
U
非保留
exists
C
非保留(不能是函数或类型)
explain
U
非保留
expression
U
非保留
extension
U
非保留
external
U
非保留
extract
C
非保留(不能是函数或类型)
false
R
保留
family
U
非保留
fetch
R
保留
fields
U
非保留
fill
U
非保留
fill_missing_fields
U
非保留
filter
U
非保留
firewall
U
非保留
first
U
非保留
fixed
U
非保留
float
C
非保留(不能是函数或类型)
following
U
非保留
for
R
保留
force
U
非保留
foreign
R
保留
format
U
非保留
formatter
U
非保留
forward
U
非保留
freeze
T
保留(可以是函数或类型)
from
R
保留
full
T
保留(可以是函数或类型)
function
U
非保留
functions
U
非保留
generated
U
非保留
getterm
U
非保留
global
U
非保留
grant
R
保留
granted
U
非保留
greatest
C
非保留(不能是函数或类型)
group
R
保留
grouping
C
非保留(不能是函数或类型)
groups
U
非保留
gtm
U
非保留
handler
U
非保留
having
R
保留
header
U
非保留
hold
U
非保留
host
U
非保留
hour
U
非保留
identity
U
非保留
if
U
非保留
ignore_extra_data
U
非保留
ilike
T
保留(可以是函数或类型)
immediate
U
非保留
immutable
U
非保留
implicit
U
非保留
import
U
非保留
in
R
保留
include
U
非保留
including
U
非保留
increment
U
非保留
index
U
非保留
indexes
U
非保留
inherit
U
非保留
inherits
U
非保留
initially
R
保留
inline
U
非保留
inner
T
保留(可以是函数或类型)
inout
C
非保留(不能是函数或类型)
input
U
非保留
insensitive
U
非保留
insert
U
非保留
instead
U
非保留
int
C
非保留(不能是函数或类型)
integer
C
非保留(不能是函数或类型)
intersect
R
保留
interval
C
非保留(不能是函数或类型)
into
R
保留
invoker
U
非保留
is
T
保留(可以是函数或类型)
isnull
T
保留(可以是函数或类型)
isolation
U
非保留
join
T
保留(可以是函数或类型)
key
U
非保留
label
U
非保留
language
U
非保留
large
U
非保留
last
U
非保留
lateral
R
保留
leading
R
保留
leakproof
U
非保留
least
C
非保留(不能是函数或类型)
left
T
保留(可以是函数或类型)
less
U
非保留
level
U
非保留
like
T
保留(可以是函数或类型)
limit
R
保留
listen
U
非保留
load
U
非保留
local
U
非保留
localtime
R
保留
localtimestamp
R
保留
location
U
非保留
lock
U
非保留
locked
U
非保留
log
U
非保留
logged
U
非保留
mapping
U
非保留
master
U
非保留
match
U
非保留
matched
U
非保留
materialized
U
非保留
maxvalue
U
非保留
memory_limit
U
非保留
merge
U
非保留
method
U
非保留
minute
U
非保留
minvalue
U
非保留
missing
U
非保留
mode
U
非保留
month
U
非保留
move
U
非保留
name
U
非保留
names
U
非保留
national
C
非保留(不能是函数或类型)
natural
T
保留(可以是函数或类型)
nchar
C
非保留(不能是函数或类型)
new
U
非保留
newline
U
非保留
next
U
非保留
no
U
非保留
noaudit
R
保留
node
U
非保留
none
C
非保留(不能是函数或类型)
not
R
保留
nothing
U
非保留
notify
U
非保留
notnull
T
保留(可以是函数或类型)
nowait
U
非保留
null
R
保留
nullif
C
非保留(不能是函数或类型)
nulls
U
非保留
numeric
C
非保留(不能是函数或类型)
object
U
非保留
of
U
非保留
off
U
非保留
offset
R
保留
oid
U
非保留
oids
U
非保留
old
U
非保留
on
R
保留
only
R
保留
operator
U
非保留
option
U
非保留
options
U
非保留
or
R
保留
order
R
保留
ordinality
U
非保留
others
U
非保留
out
C
非保留(不能是函数或类型)
outer
T
保留(可以是函数或类型)
over
U
非保留
overlaps
T
保留(可以是函数或类型)
overlay
C
非保留(不能是函数或类型)
overriding
U
非保留
owned
U
非保留
owner
U
非保留
parallel
U
非保留
parser
U
非保留
partial
U
非保留
partialclusterkey
U
非保留
partition
U
非保留
partitions
U
非保留
passing
U
非保留
password
U
非保留
pause
U
非保留
percent
U
非保留
persistently
U
非保留
placing
R
保留
plans
U
非保留
policy
U
非保留
position
C
非保留(不能是函数或类型)
preceding
U
非保留
precision
C
非保留(不能是函数或类型)
preferred
U
非保留
prepare
U
非保留
prepared
U
非保留
preserve
U
非保留
primary
R
保留
prior
U
非保留
priority
U
非保留
privileges
U
非保留
procedural
U
非保留
procedure
U
非保留
procedures
U
非保留
program
U
非保留
publication
U
非保留
pushdown
U
非保留
queue
U
非保留
quote
U
非保留
randomly
U
非保留
range
U
非保留
read
U
非保留
readable
U
非保留
real
C
非保留(不能是函数或类型)
reassign
U
非保留
rebuild
U
非保留
recheck
U
非保留
recursive
U
非保留
ref
U
非保留
references
R
保留
referencing
U
非保留
refresh
U
非保留
reindex
U
非保留
reject
U
非保留
relative
U
非保留
release
U
非保留
rename
U
非保留
repeatable
U
非保留
replace
U
非保留
replica
U
非保留
reset
U
非保留
resource
U
非保留
restart
U
非保留
restrict
U
非保留
result_cache
U
非保留
returning
R
保留
returns
U
非保留
revoke
U
非保留
right
T
保留(可以是函数或类型)
role
U
非保留
rollback
U
非保留
rollback_subtxn
U
非保留
rollup
U
非保留
rotation
U
非保留
routine
U
非保留
routines
U
非保留
row
C
非保留(不能是函数或类型)
rows
U
非保留
rule
U
非保留
sample
U
非保留
savepoint
U
非保留
schema
U
非保留
schemas
U
非保留
scroll
U
非保留
search
U
非保留
second
U
非保留
security
U
非保留
segment
U
非保留
select
R
保留
sequence
U
非保留
sequences
U
非保留
serializable
U
非保留
server
U
非保留
session
U
非保留
session_user
R
保留
set
U
非保留
setof
C
非保留(不能是函数或类型)
sets
U
非保留
setterm
U
非保留
shardcluster
R
保留
sharding
U
非保留
share
U
非保留
show
U
非保留
similar
T
保留(可以是函数或类型)
simple
U
非保留
skip
U
非保留
slot
U
非保留
smallint
C
非保留(不能是函数或类型)
snapshot
U
非保留
some
R
保留
sql
U
非保留
stable
U
非保留
standalone
U
非保留
start
U
非保留
stashmerge
T
保留(可以是函数或类型)
statement
U
非保留
statistics
U
非保留
stdin
U
非保留
stdout
U
非保留
storage
U
非保留
stored
U
非保留
strict
U
非保留
strip
U
非保留
subscription
U
非保留
substring
C
非保留(不能是函数或类型)
successful
R
保留
symmetric
R
保留
sysdate
R
保留
sysid
U
非保留
system
U
非保留
table
R
保留
tables
U
非保留
tablesample
T
保留(可以是函数或类型)
tablespace
U
非保留
tbase
U
非保留
temp
U
非保留
template
U
非保留
temporary
U
非保留
text
U
非保留
than
U
非保留
then
R
保留
ties
U
非保留
time
C
非保留(不能是函数或类型)
timestamp
C
非保留(不能是函数或类型)
timestampdiff
C
非保留(不能是函数或类型)
to
R
保留
trailing
R
保留
transaction
U
非保留
transform
U
非保留
treat
C
非保留(不能是函数或类型)
trigger
U
非保留
trim
C
非保留(不能是函数或类型)
true
R
保留
truncate
U
非保留
trusted
U
非保留
type
U
非保留
types
U
非保留
unbounded
U
非保留
uncommitted
U
非保留
unencrypted
U
非保留
union
R
保留
unique
R
保留
unknown
U
非保留
unlisten
U
非保留
unlock
U
非保留
unlogged
U
非保留
unpause
U
非保留
until
U
非保留
update
U
非保留
user
R
保留
using
R
保留
vacuum
U
非保留
valid
U
非保留
validate
U
非保留
validator
U
非保留
value
U
非保留
values
C
非保留(不能是函数或类型)
varchar
C
非保留(不能是函数或类型)
variadic
R
保留
varying
U
非保留
verbose
T
保留(可以是函数或类型)
version
U
非保留
versionof
R
保留
view
U
非保留
views
U
非保留
volatile
U
非保留
web
U
非保留
when
R
保留
whenever
R
保留
where
R
保留
whitespace
U
非保留
window
R
保留
with
R
保留
within
U
非保留
without
U
非保留
work
U
非保留
wrapper
U
非保留
writable
U
非保留
write
U
非保留
xml
U
非保留
xmlattributes
C
非保留(不能是函数或类型)
xmlconcat
C
非保留(不能是函数或类型)
xmlelement
C
非保留(不能是函数或类型)
xmlexists
C
非保留(不能是函数或类型)
xmlforest
C
非保留(不能是函数或类型)
xmlnamespaces
C
非保留(不能是函数或类型)
xmlparse
C
非保留(不能是函数或类型)
xmlpi
C
非保留(不能是函数或类型)
xmlroot
C
非保留(不能是函数或类型)
xmlserialize
C
非保留(不能是函数或类型)
xmltable
C
非保留(不能是函数或类型)
year
U
非保留
yes
U
非保留
zone
U
非保留