VastbaseG100

基于openGauss内核开发的企业级关系型数据库。

Menu

PostgreSQL兼容模式关键字

在Vastbase的PostgreSQL兼容模式下,关键字及其类别的清单如表1(SQL关键字)和表2(PL/pgSQL关键字)所示。

表 1 SQL关键字

关键字 类别
abort 非保留
absolute 非保留
access 非保留
accessed 非保留
account 非保留
action 非保留
add 非保留
admin 非保留
after 非保留
aggregate 非保留
algorithm 非保留
all 保留
also 非保留
alter 非保留
always 非保留
analyse 保留
analyze 保留
and 保留
any 保留
app 非保留
append 非保留
archive 非保留
array 保留
as 保留
asc 保留
assertion 非保留
assignment 非保留
asymmetric 保留
at 非保留
attach 非保留
attribute 非保留
audit 非保留
authid 非保留 (不可用于函数、类型名)
authorization 保留 (可用于函数、类型名)
auto_increment 保留
autoextend 非保留
automapped 非保留
backward 非保留
barrier 非保留
before 非保留
begin 非保留
begin_non_anoyblock 非保留
between 非保留 (不可用于函数、类型名)
bfile 非保留
bigint 非保留 (不可用于函数、类型名)
binary 保留 (可用于函数、类型名)
binary_double 非保留 (不可用于函数、类型名)
binary_float 非保留 (不可用于函数、类型名)
binary_integer 非保留 (不可用于函数、类型名)
bit 非保留 (不可用于函数、类型名)
blanks 非保留
blob 非保留
block 非保留
blockchain 非保留
body 保留
boolean 非保留 (不可用于函数、类型名)
both 保留
bucketcnt 非保留 (不可用于函数、类型名)
buckets 保留
by 非保留
byte 非保留 (不可用于函数、类型名)
byteawithoutorder 非保留 (不可用于函数、类型名)
byteawithoutorderwithequal 非保留 (不可用于函数、类型名)
cache 非保留
call 非保留
called 非保留
cancelable 非保留
cascade 非保留
cascaded 非保留
case 保留
cast 保留
catalog 非保留
chain 非保留
change 非保留
char 非保留 (不可用于函数、类型名)
character 非保留 (不可用于函数、类型名)
characteristics 非保留
characterset 非保留
charset 非保留
check 保留
checkpoint 非保留
checktable 保留
class 非保留
clean 非保留
client 非保留
client_master_key 非保留
client_master_keys 非保留
clob 非保留
close 非保留
cluster 非保留
coalesce 非保留 (不可用于函数、类型名)
collate 保留
collation 保留 (可用于函数、类型名)
column 保留
column_encryption_key 非保留
column_encryption_keys 非保留
columns 非保留
comment 非保留
comments 非保留
commit 非保留
committed 非保留
compact 保留 (可用于函数、类型名)
compatible_illegal_chars 非保留
complete 非保留
completion 非保留
compress 非保留
concurrently 保留 (可用于函数、类型名)
condition 非保留
configuration 非保留
conflict 非保留
connect 非保留
connect_by_root 非保留
connection 非保留
constant 非保留
constraint 保留
constraints 非保留
contains 非保留
content 非保留
context 非保留
continue 非保留
contview 非保留
conversion 非保留
convert 非保留 (不可用于函数、类型名)
coordinator 非保留
coordinators 非保留
copy 非保留
cost 非保留
create 保留
cross 保留 (可用于函数、类型名)
csn 保留 (可用于函数、类型名)
csv 非保留
cube 非保留
current 非保留
current_catalog 保留
current_date 保留
current_role 保留
current_schema 保留 (可用于函数、类型名)
current_time 保留
current_timestamp 保留
current_user 保留
cursor 非保留
cycle 非保留
data 非保留
database 非保留
datafile 非保留
datanode 非保留
datanodes 非保留
datatype_cl 非保留
date 非保留 (不可用于函数、类型名)
date_add 非保留 (不可用于函数、类型名)
date_format 非保留
datetime 非保留
datetime2 非保留
day 非保留
dbcc 保留
dbcompatibility 非保留
dblink 非保留
dbname 非保留
dbtimezone 保留
deallocate 非保留
dec 非保留 (不可用于函数、类型名)
decimal 非保留 (不可用于函数、类型名)
declare 非保留
decode 非保留 (不可用于函数、类型名)
default 保留
defaults 非保留
deferrable 保留
deferred 非保留
definer 非保留
delayed 非保留
delete 非保留
delimiter 非保留
delimiters 非保留
delta 非保留
deltamerge 保留 (可用于函数、类型名)
desc 保留
deterministic 非保留
dictionary 非保留
direct 非保留
directory 非保留
disable 非保留
discard 非保留
disconnect 非保留
distinct 保留
distribute 非保留
distribution 非保留
do 保留
document 非保留
domain 非保留
double 非保留
double_compatible 非保留 (不可用于函数、类型名)
drop 非保留
dumpfile 非保留
duplicate 非保留
each 非保留
elastic 非保留
else 保留
enable 非保留
enclosed 非保留
encoding 非保留
encrypted 非保留
encrypted_value 非保留
encryption 非保留
encryption_type 非保留
end 保留
ends 非保留
enforced 非保留
enum 非保留
eol 非保留
error 非保留
errors 非保留
escape 非保留
escaped 非保留
escaping 非保留
event 非保留
events 非保留
every 非保留
except 保留
exchange 非保留
exclude 非保留
excluded 保留
excluding 非保留
exclusive 非保留
exec 非保留
execute 非保留
exists 非保留 (不可用于函数、类型名)
expired 非保留
explain 非保留
extension 非保留
external 非保留
extract 非保留 (不可用于函数、类型名)
FALSE 保留
family 非保留
fast 非保留
features 非保留
fenced 保留
fetch 保留
fields 非保留
fileheader 非保留
fill_missing_fields 非保留
filler 非保留
filter 非保留
first 非保留
fixed 非保留
flashback 保留
float 非保留 (不可用于函数、类型名)
following 非保留
follows 非保留
for 保留
force 非保留
foreign 保留
formatter 非保留
forward 非保留
freeze 保留 (可用于函数、类型名)
from 保留
full 保留 (可用于函数、类型名)
function 非保留
functions 非保留
generated 非保留
global 非保留
globally 非保留
grant 保留
granted 非保留
greatest 非保留 (不可用于函数、类型名)
group 保留
grouping 非保留 (不可用于函数、类型名)
grouping_id 非保留 (不可用于函数、类型名)
groupparent 保留
handler 非保留
having 保留
hdfsdirectory 保留 (可用于函数、类型名)
header 非保留
hold 非保留
hour 非保留
identified 非保留
identity 非保留
if 非保留
ignore_extra_data 非保留
ilike 保留 (可用于函数、类型名)
image 保留 (可用于函数、类型名)
immediate 非保留
immutable 非保留
implicit 非保留
import 非保留
in 保留
include 非保留
including 非保留
increment 非保留
incremental 非保留
index 非保留
indexes 非保留
infile 非保留
inherit 非保留
inherits 非保留
initial 非保留
initially 保留
initrans 非保留
inline 非保留
inner 保留 (可用于函数、类型名)
inout 非保留 (不可用于函数、类型名)
input 非保留
insensitive 非保留
insert 非保留
instead 非保留
int 非保留 (不可用于函数、类型名)
integer 非保留 (不可用于函数、类型名)
internal 非保留
intersect 保留
interval 非保留 (不可用于函数、类型名)
into 保留
invisible 非保留
invoker 非保留
ip 非保留
is 保留
isnull 非保留
isolation 非保留
join 保留 (可用于函数、类型名)
json_mergepatch 保留
key 非保留
key_path 非保留
key_store 非保留
kill 非保留
label 非保留
language 非保留
large 非保留
last 非保留
lc_collate 非保留
lc_ctype 非保留
leading 保留
leakproof 非保留
least 非保留 (不可用于函数、类型名)
left 保留 (可用于函数、类型名)
less 保留
level 非保留
like 保留 (可用于函数、类型名)
limit 保留
lines 非保留
link 非保留
list 非保留
listen 非保留
load 非保留
local 非保留
localtime 保留
localtimestamp 保留
location 非保留
lock 非保留
locked 非保留
log 非保留
logging 非保留
logical_data 保留
logical_file 保留
login_any 非保留
login_failure 非保留
login_success 非保留
logout 非保留
long 非保留
loop 非保留
low_priority 非保留
mapping 非保留
masking 非保留
master 非保留
match 非保留
matched 非保留
materialized 非保留
maxextents 非保留
maxsize 非保留
maxtrans 非保留
maxvalue 保留
merge 非保留
minextents 非保留
minus 保留
minute 非保留
minvalue 非保留
mode 非保留
model 非保留
modify 保留
month 非保留
move 非保留
movement 非保留
name 非保留
names 非保留
national 非保留 (不可用于函数、类型名)
natural 保留 (可用于函数、类型名)
nchar 非保留 (不可用于函数、类型名)
next 非保留
no 非保留
nocache 非保留
nocompress 非保留
nocycle 保留
node 非保留
noforce 非保留
nologging 非保留
nomaxvalue 非保留
nominvalue 非保留
none 非保留 (不可用于函数、类型名)
noorder 非保留
normally 非保留
not 保留
nothing 非保留
notify 非保留
notnull 保留 (可用于函数、类型名)
nowait 非保留
null 保留
nullcols 非保留
nullif 非保留 (不可用于函数、类型名)
nulls 非保留
number 非保留 (不可用于函数、类型名)
numeric 非保留 (不可用于函数、类型名)
numstr 非保留
nvarchar 非保留 (不可用于函数、类型名)
nvarchar2 非保留 (不可用于函数、类型名)
nvl 非保留 (不可用于函数、类型名)
nvl2 非保留 (不可用于函数、类型名)
object 非保留
of 非保留
off 保留
offset 保留
oids 非保留
on 保留
only 保留
operator 非保留
optimization 非保留
option 非保留
optionally 非保留
options 非保留
or 保留
ora_hash 非保留 (不可用于函数、类型名)
order 保留
out 非保留 (不可用于函数、类型名)
outer 保留 (可用于函数、类型名)
outfile 非保留
output 保留
over 非保留
overlaps 保留 (可用于函数、类型名)
overlay 非保留 (不可用于函数、类型名)
overriding 非保留
owned 非保留
owner 非保留
package 非保留
packages 非保留
pad_attribute 非保留
parallel 非保留
parser 非保留
partial 非保留
partition 非保留
partitions 非保留
passing 非保留
password 非保留
pctfree 非保留
per 非保留
percent 非保留
performance 保留
perm 非保留
physical_only 保留
pipelined 非保留
pivot 非保留
placing 保留
plan 非保留
plans 非保留
policy 非保留
pool 非保留
position 非保留 (不可用于函数、类型名)
precedes 非保留
preceding 非保留
precision 非保留 (不可用于函数、类型名)
predict 非保留
preferred 非保留
prefix 非保留
prepare 非保留
prepared 非保留
preserve 非保留
primary 保留
prior 非保留
priorer 保留
private 非保留
privilege 非保留
privileges 非保留
procedural 非保留
procedure 保留
profile 非保留
public 非保留
publication 非保留
publish 非保留
purge 非保留
query 非保留
quote 非保留
randomized 非保留
range 非保留
ratio 非保留
raw 非保留
read 非保留
real 非保留 (不可用于函数、类型名)
reassign 非保留
rebuild 非保留
recheck 非保留
recursive 非保留
recyclebin 保留 (可用于函数、类型名)
redisanyvalue 非保留
ref 非保留
references 保留
refresh 非保留
reindex 非保留
reject 保留
relative 非保留
release 非保留
reloptions 非保留
remote 非保留
remove 非保留
rename 非保留
repeat 非保留
repeatable 非保留
replace 非保留
replica 非保留
reserve 非保留
reset 非保留
resize 非保留
resource 非保留
restart 非保留
restrict 非保留
return 保留
returning 保留
returns 非保留
reuse 非保留
revoke 非保留
right 保留 (可用于函数、类型名)
role 非保留
roles 非保留
rollback 非保留
rollup 非保留
rotation 非保留
row 非保留 (不可用于函数、类型名)
rowid 非保留
rownum 保留
rows 非保留
rowtype 非保留
rule 非保留
sample 保留 (可用于函数、类型名)
savepoint 非保留
schedule 非保留
schema 非保留
score 非保留
scroll 非保留
search 非保留
second 非保留
security 非保留
seed 非保留
select 保留
sensitive 非保留
sequence 非保留
sequences 非保留
serializable 非保留
server 非保留
session 非保留
session_user 保留
sessiontimezone 保留
set 非保留
setof 非保留 (不可用于函数、类型名)
sets 非保留
share 非保留
shippable 非保留
show 非保留
shutdown 非保留
siblings 非保留
similar 保留 (可用于函数、类型名)
simple 非保留
size 非保留
skip 非保留
slave 非保留
slice 非保留
smalldatetime 非保留 (不可用于函数、类型名)
smalldatetime_format 非保留
smallint 非保留 (不可用于函数、类型名)
smallmoney 非保留
snapshot 非保留
some 保留
source 非保留
space 非保留
spill 非保留
split 非保留
sql 非保留
stable 非保留
standalone 非保留
start 非保留
starting 非保留
starts 非保留
statement 非保留
statement_id 非保留
statistics 非保留
stdin 非保留
stdout 非保留
storage 非保留
store 非保留
stored 非保留
stratify 非保留
stream 非保留
strict 非保留
strip 非保留
subpartition 非保留
subpartitions 非保留
subscription 非保留
substring 非保留 (不可用于函数、类型名)
symmetric 保留
synonym 非保留
sys_refcursor 非保留
sysdate 保留
sysid 非保留
system 非保留
systimestamp 非保留
table 保留
tables 非保留
tablesample 保留 (可用于函数、类型名)
tablespace 非保留
target 非保留
temp 非保留
template 非保留
temporary 非保留
terminated 非保留
text 非保留
than 非保留
then 保留
threshold 非保留
time 非保留 (不可用于函数、类型名)
time_format 非保留
time_period 非保留
timecapsule 保留 (可用于函数、类型名)
timestamp 非保留 (不可用于函数、类型名)
timestamp_format 非保留
timestampdiff 非保留 (不可用于函数、类型名)
tinyint 非保留 (不可用于函数、类型名)
to 保留
trailing 保留
transaction 非保留
transform 非保留
treat 非保留 (不可用于函数、类型名)
trigger 非保留
trim 非保留 (不可用于函数、类型名)
TRUE 保留
truncate 非保留
trusted 非保留
tsfield 非保留
tstag 非保留
tstime 非保留
type 非保留
types 非保留
unbounded 非保留
uncommitted 非保留
unencrypted 非保留
union 保留
unique 保留
unknown 非保留
unlimited 非保留
unlisten 非保留
unlock 非保留
unlogged 非保留
unpivot 非保留
until 非保留
unusable 非保留
update 非保留
useeof 非保留
user 保留
using 保留
vacuum 非保留
valid 非保留
validate 非保留
validation 非保留
validator 非保留
value 非保留
values 非保留 (不可用于函数、类型名)
varbinary 保留 (可用于函数、类型名)
varchar 非保留 (不可用于函数、类型名)
varchar2 非保留 (不可用于函数、类型名)
variables 非保留
variadic 保留
varying 非保留
vb_hash 非保留 (不可用于函数、类型名)
vcgroup 非保留
verbose 保留 (可用于函数、类型名)
verify 保留
version 非保留
view 非保留
visible 非保留
volatile 非保留
wait 非保留
warning 非保留
warnings 非保留
weak 非保留
when 保留
where 保留
while 非保留
whitespace 非保留
window 保留
with 保留
within 非保留
without 非保留
work 非保留
workload 非保留
wrapper 非保留
write 非保留
xml 非保留
xmlattributes 非保留 (不可用于函数、类型名)
xmlconcat 非保留 (不可用于函数、类型名)
xmlelement 非保留 (不可用于函数、类型名)
xmlexists 非保留 (不可用于函数、类型名)
xmlforest 非保留 (不可用于函数、类型名)
xmlparse 非保留 (不可用于函数、类型名)
xmlpi 非保留 (不可用于函数、类型名)
xmlroot 非保留 (不可用于函数、类型名)
xmlserialize 非保留 (不可用于函数、类型名)
year 非保留
yes 非保留
zone 非保留

表 2 PL/pgSQL保留关键字

关键字 类别
absolute 非保留
alias 非保留
all 保留
alter 非保留
array 非保留
as 非保留
backward 非保留
begin 保留
bulk 非保留
by 保留
call 保留
case 保留
close 保留
collate 保留
collect 非保留
commit 非保留
constant 非保留
continue 非保留
current 非保留
cursor 非保留
debug 非保留
declare 保留
default 保留
delete 保留
detail 非保留
diagnostics 保留
distinct 非保留
do 非保留
dump 非保留
else 保留
elseif 保留
elsif 保留
end 保留
errcode 非保留
error 非保留
except 非保留
exception 保留
exceptions 非保留
execute 保留
exit 保留
fetch 保留
first 非保留
for 保留
forall 保留
foreach 保留
forward 非保留
from 保留
function 非保留
get 保留
goto 保留
hint 非保留
if 保留
immediate 非保留
in 保留
index 非保留
info 非保留
insert 保留
instantiation 非保留
intersect 非保留
into 保留
is 非保留
iterate 非保留
last 非保留
leave 非保留
limit 保留
log 非保留
loop 保留
merge 非保留
message 非保留
message_text 非保留
move 保留
multiset 非保留
next 非保留
no 非保留
not 保留
notice 非保留
null 保留
of 保留
open 保留
option 非保留
or 保留
out 保留
package 非保留
perform 非保留
pg_exception_context 非保留
pg_exception_detail 非保留
pg_exception_hint 非保留
pipe 非保留
pls_integer 非保留
pragma 非保留
print_strict_params 非保留
prior 非保留
procedure 保留
query 非保留
raise 保留
record 非保留
ref 保留
relative 非保留
release 非保留
repeat 非保留
result_oid 非保留
return 保留
returned_sqlstate 非保留
reverse 非保留
rollback 非保留
row 非保留
row_count 非保留
rowtype 非保留
save 非保留
savepoint 非保留
scroll 非保留
select 保留
slice 非保留
sqlstate 非保留
stacked 非保留
strict 保留
sys_refcursor 非保留
table 非保留
then 保留
to 保留
type 非保留
union 非保留
until 非保留
update 保留
updating 保留
use_column 非保留
use_variable 非保留
using 保留
values 非保留
variable_conflict 非保留
varray 非保留
warning 非保留
when 保留
while 保留
with 非保留