本部分提供有关 MySQL 8.3 中关键字和保留字的信息。
以下列表显示了 MySQL 8.3 中的关键字和保留字,以及各个单词从一个版本到另一个版本的变化。保留关键字用 (R) 标记。
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
ACCESSIBLE
(R)ACCOUNT
ACTION
ACTIVE
ADD
(R)ADMIN
AFTER
AGAINST
AGGREGATE
ALGORITHM
ALL
(R)ALTER
(R)ALWAYS
ANALYZE
(R)AND
(R)ANY
ARRAY
AS
(R)ASC
(R)ASCII
ASENSITIVE
(R)AT
ATTRIBUTE
AUTHENTICATION
AUTOEXTEND_SIZE
AUTO_INCREMENT
AVG
AVG_ROW_LENGTH
BACKUP
BEFORE
(R)BEGIN
BETWEEN
(R)BIGINT
(R)BINARY
(R)二进制日志
位
BLOB
(R)块
布尔
布尔
BOTH
(R)B 树
存储桶
批量
BY
(R)字节
缓存
CALL
(R)CASCADE
(R)级联
CASE
(R)目录名称
链
质询响应
CHANGE
(R)已更改
通道
CHAR
(R)CHARACTER
(R)字符集
CHECK
(R)校验和
密码
类来源
客户端
克隆
关闭
合并
代码
COLLATE
(R)排序规则
COLUMN
(R)列
列格式
列名称
注释
提交
已提交
紧凑
完成
组件
已压缩
压缩
并发
CONDITION
(R)连接
一致
CONSTRAINT
(R)约束目录
约束名称
约束模式
包含
上下文
CONTINUE
(R)CONVERT
(R)CPU
CREATE
(R)CROSS
(R)CUBE
(R)CUME_DIST
(R)当前
CURRENT_DATE
(R)CURRENT_TIME
(R)CURRENT_TIMESTAMP
(R)CURRENT_USER
(R)CURSOR
(R)游标名称
数据
DATABASE
(R)DATABASES
(R)数据文件
日期
日期时间
天
DAY_HOUR
(R)DAY_MICROSECOND
(R)DAY_MINUTE
(R)DAY_SECOND
(R)释放
DEC
(R)DECIMAL
(R)DECLARE
(R)DEFAULT
(R)默认身份验证
定义者
定义
DELAYED
(R)延迟键写入
DELETE
(R)DENSE_RANK
(R)DESC
(R)DESCRIBE
(R)描述
DETERMINISTIC
(R)诊断
目录
禁用
放弃
磁盘
DISTINCT
(R)DISTINCTROW
(R)DIV
(R)执行
DOUBLE
(R)DROP
(R)DUAL
(R)转储文件
重复
动态
EACH
(R)ELSE
(R)ELSEIF
(R)EMPTY
(R)启用
ENCLOSED
(R)加密
结束
结束
强制
引擎
引擎
引擎属性
枚举
错误
错误
转义
ESCAPED
(R)事件
事件
每
EXCEPT
(R)交换
排除
执行
EXISTS
(R)EXIT
(R)扩展
过期
EXPLAIN
(R)导出
扩展
区大小
因子
登录尝试失败
FALSE
(R)快速
故障
FETCH
(R)字段
文件
文件块大小
筛选器
完成
第一个
FIRST_VALUE
(R)固定
FLOAT
(R)FLOAT4
(R)FLOAT8
(R)刷新
跟随
跟随
FOR
(R)FORCE
(R)FOREIGN
(R)格式
发现
FROM
(R)完整
FULLTEXT
(R)FUNCTION
(R)
常规
生成
GENERATED
(R)地理集合
几何
几何集合
GET
(R)获取格式
获取主公钥
获取源公钥
全局
GRANT
(R)授予
GROUP
(R)GROUPING
(R)组
(R)组复制
GTID
仅 GTID
处理程序
哈希
具有
(R)帮助
高优先级
(R)直方图
历史记录
主机
主机
小时
小时_微秒
(R)小时_分钟
(R)小时_秒
(R)
已识别
如果
(R)忽略
(R)忽略服务器 ID
导入
在
(R)非活动
索引
(R)索引
文件
(R)初始
初始大小
启动
内部
(R)输入输出
(R)不区分大小写
(R)插入
(R)插入方法
安装
实例
整数
(R)整数 1
(R)整数 2
(R)整数 3
(R)整数 4
(R)整数 8
(R)整数
(R)相交
(R)间隔
(R)到
(R)不可见
调用方
IO
GTID 后 IO
(R)GTID 前 IO
(R)IO 线程
IPC
是
(R)隔离
颁发者
迭代
(R)
联接
(R)JSON
JSON 表
(R)JSON 值
键
(R)密钥环
键
(R)密钥块大小
终止
(R)
滞后
(R)语言
最后
最后值
(R)横向
(R)前置
(R)前导
(R)离开
(R)离开
左
(R)小于
级别
像
(R)限制
(R)线性
(R)行
(R)线串
列表
加载
(R)本地
本地时间
(R)LOCALTIMESTAMP
(R)LOCK
(R)LOCKED
LOCKS
LOG
LOGFILE
LOGS
LONG
(R)LONGBLOB
(R)LONGTEXT
(R)LOOP
(R)LOW_PRIORITY
(R)
MASTER
MASTER_AUTO_POSITION
MASTER_BIND
(R)MASTER_COMPRESSION_ALGORITHMS
MASTER_CONNECT_RETRY
MASTER_DELAY
MASTER_HEARTBEAT_PERIOD
MASTER_HOST
MASTER_LOG_FILE
MASTER_LOG_POS
MASTER_PASSWORD
MASTER_PORT
MASTER_PUBLIC_KEY_PATH
MASTER_RETRY_COUNT
MASTER_SSL
MASTER_SSL_CA
MASTER_SSL_CAPATH
MASTER_SSL_CERT
MASTER_SSL_CIPHER
MASTER_SSL_CRL
MASTER_SSL_CRLPATH
MASTER_SSL_KEY
MASTER_SSL_VERIFY_SERVER_CERT
(R)MASTER_TLS_CIPHERSUITES
MASTER_TLS_VERSION
MASTER_USER
MASTER_ZSTD_COMPRESSION_LEVEL
MATCH
(R)MAXVALUE
(R)MAX_CONNECTIONS_PER_HOUR
MAX_QUERIES_PER_HOUR
MAX_ROWS
MAX_SIZE
MAX_UPDATES_PER_HOUR
MAX_USER_CONNECTIONS
MEDIUM
MEDIUMBLOB
(R)MEDIUMINT
(R)MEDIUMTEXT
(R)MEMBER
MEMORY
MERGE
MESSAGE_TEXT
MICROSECOND
MIDDLEINT
(R)MIGRATE
MINUTE
MINUTE_MICROSECOND
(R)MINUTE_SECOND
(R)MIN_ROWS
MOD
(R)MODE
MODIFIES
(R)MODIFY
MONTH
MULTILINESTRING
MULTIPOINT
MULTIPOLYGON
MUTEX
MYSQL_ERRNO
NAME
NAMES
NATIONAL
NATURAL
(R)NCHAR
NDB
NDBCLUSTER
NESTED
NETWORK_NAMESPACE
NEVER
NEW
NEXT
NO
NODEGROUP
NONE
NOT
(R)NOWAIT
NO_WAIT
NO_WRITE_TO_BINLOG
(R)NTH_VALUE
(R)NTILE
(R)NULL
(R)NULLS
NUMBER
NUMERIC
(R)NVARCHAR
OF
(R)OFF
OFFSET
OJ
OLD
ON
(R)ONE
ONLY
OPEN
OPTIMIZE
(R)OPTIMIZER_COSTS
(R)OPTION
(R)OPTIONAL
OPTIONALLY
(R)OPTIONS
OR
(R)ORDER
(R)ORDINALITY
ORGANIZATION
OTHERS
OUT
(R)OUTER
(R)OUTFILE
(R)OVER
(R)OWNER
PACK_KEYS
PAGE
PARALLEL
(R)PARSER
PARSE_TREE
PARTIAL
PARTITION
(R)PARTITIONING
PARTITIONS
PASSWORD
PASSWORD_LOCK_TIME
PATH
PERCENT_RANK
(R)PERSIST
PERSIST_ONLY
PHASE
PLUGIN
PLUGINS
PLUGIN_DIR
POINT
POLYGON
PORT
PRECEDES
PRECEDING
PRECISION
(R)PREPARE
PRESERVE
PREV
PRIMARY
(R)PRIVILEGES
PRIVILEGE_CHECKS_USER
PROCEDURE
(R)PROCESS
PROCESSLIST
PROFILE
PROFILES
PROXY
PURGE
(R)
QUALIFY
(R)QUARTER
QUERY
QUICK
RANDOM
RANGE
(R)RANK
(R)READ
(R)READS
(R)READ_ONLY
READ_WRITE
(R)REAL
(R)REBUILD
RECOVER
RECURSIVE
(R)REDO_BUFFER_SIZE
REDUNDANT
REFERENCE
REFERENCES
(R)REGEXP
(R)REGISTRATION
RELAY
RELAYLOG
RELAY_LOG_FILE
RELAY_LOG_POS
RELAY_THREAD
RELEASE
(R)RELOAD
REMOVE
RENAME
(R)REORGANIZE
REPAIR
REPEAT
(R)REPEATABLE
REPLACE
(R)REPLICA
REPLICAS
REPLICATE_DO_DB
REPLICATE_DO_TABLE
REPLICATE_IGNORE_DB
REPLICATE_IGNORE_TABLE
REPLICATE_REWRITE_DB
REPLICATE_WILD_DO_TABLE
REPLICATE_WILD_IGNORE_TABLE
REPLICATION
REQUIRE
(R)REQUIRE_ROW_FORMAT
RESET
RESIGNAL
(R)RESOURCE
RESPECT
RESTART
RESTORE
RESTRICT
(R)RESUME
RETAIN
RETURN
(R)RETURNED_SQLSTATE
RETURNING
RETURNS
REUSE
REVERSE
REVOKE
(R)RIGHT
(R)RLIKE
(R)ROLE
ROLLBACK
ROLLUP
ROTATE
ROUTINE
ROW
(R)ROWS
(R)ROW_COUNT
ROW_FORMAT
ROW_NUMBER
(R)RTREE
S3
SAVEPOINT
SCHEDULE
SCHEMA
(R)SCHEMAS
(R)SCHEMA_NAME
SECOND
SECONDARY
SECONDARY_ENGINE
SECONDARY_ENGINE_ATTRIBUTE
SECONDARY_LOAD
SECONDARY_UNLOAD
SECOND_MICROSECOND
(R)SECURITY
SELECT
(R)SENSITIVE
(R)SEPARATOR
(R)SERIAL
SERIALIZABLE
SERVER
SESSION
SET
(R)SHARE
SHOW
(R)SHUTDOWN
SIGNAL
(R)SIGNED
SIMPLE
SKIP
SLAVE
SLOW
SMALLINT
(R)SNAPSHOT
SOCKET
SOME
SONAME
SOUNDS
SOURCE
SOURCE_AUTO_POSITION
SOURCE_BIND
SOURCE_COMPRESSION_ALGORITHMS
SOURCE_CONNECT_RETRY
SOURCE_DELAY
SOURCE_HEARTBEAT_PERIOD
SOURCE_HOST
SOURCE_LOG_FILE
SOURCE_LOG_POS
SOURCE_PASSWORD
SOURCE_PORT
SOURCE_PUBLIC_KEY_PATH
SOURCE_RETRY_COUNT
SOURCE_SSL
SOURCE_SSL_CA
SOURCE_SSL_CAPATH
SOURCE_SSL_CERT
SOURCE_SSL_CIPHER
SOURCE_SSL_CRL
SOURCE_SSL_CRLPATH
SOURCE_SSL_KEY
SOURCE_SSL_VERIFY_SERVER_CERT
SOURCE_TLS_CIPHERSUITES
SOURCE_TLS_VERSION
SOURCE_USER
SOURCE_ZSTD_COMPRESSION_LEVEL
SPATIAL
(R)SPECIFIC
(R)SQLEXCEPTION
(R)SQLSTATE
(R)SQLWARNING
(R)SQL_AFTER_GTIDS
SQL_AFTER_MTS_GAPS
SQL_BEFORE_GTIDS
SQL_BIG_RESULT
(R)SQL_BUFFER_RESULT
SQL_CALC_FOUND_ROWS
(R)SQL_NO_CACHE
SQL_SMALL_RESULT
(R)SQL_THREAD
SQL_TSI_DAY
SQL_TSI_HOUR
SQL_TSI_MINUTE
SQL_TSI_MONTH
SQL_TSI_QUARTER
SQL_TSI_SECOND
SQL_TSI_WEEK
SQL_TSI_YEAR
SRID
SSL
(R)STACKED
START
STARTING
(R)STARTS
STATS_AUTO_RECALC
STATS_PERSISTENT
STATS_SAMPLE_PAGES
STATUS
STOP
STORAGE
STORED
(R)STRAIGHT_JOIN
(R)STREAM
STRING
SUBCLASS_ORIGIN
SUBJECT
SUBPARTITION
SUBPARTITIONS
SUPER
SUSPEND
SWAPS
SWITCHES
SYSTEM
(R)
TABLE
(R)TABLES
TABLESPACE
TABLE_CHECKSUM
TABLE_NAME
TEMPORARY
TEMPTABLE
TERMINATED
(R)TEXT
THAN
THEN
(R)THREAD_PRIORITY
TIES
TIME
TIMESTAMP
TIMESTAMPADD
TIMESTAMPDIFF
TINYBLOB
(R)TINYINT
(R)TINYTEXT
(R)TLS
TO
(R)TRAILING
(R)TRANSACTION
TRIGGER
(R)TRIGGERS
TRUE
(R)TRUNCATE
TYPE
TYPES
UNBOUNDED
UNCOMMITTED
UNDEFINED
UNDO
(R)UNDOFILE
UNDO_BUFFER_SIZE
UNICODE
UNINSTALL
UNION
(R)UNIQUE
(R)UNKNOWN
UNLOCK
(R)UNREGISTER
UNSIGNED
(R)UNTIL
UPDATE
(R)升级
URL
USAGE
(R)USE
(R)用户
USER_RESOURCES
USE_FRM
USING
(R)UTC_DATE
(R)UTC_TIME
(R)UTC_TIMESTAMP
(R)
验证
值
VALUES
(R)VARBINARY
(R)VARCHAR
(R)VARCHARACTER
(R)变量
VARYING
(R)VCPU
视图
VIRTUAL
(R)可见
等待
警告
周
WEIGHT_STRING
WHEN
(R)WHERE
(R)WHILE
(R)WINDOW
(R)WITH
(R)WITHOUT
工作
包装器
WRITE
(R)
X509
XA
XID
XML
XOR
(R)
年
YEAR_MONTH
(R)
ZEROFILL
(R)时区