跳转到主要内容

类型与域

查询列声明、二进制字面量和元数据表使用的类型。

查询列声明、二进制字面量和元数据表使用的类型。

二进制基础类型

对象签名用途源码定义
mysql.binary_n存储带长度声明的定长 BINARY。生成定义
mysql.hexlit十六进制或位字面量,可按字节串或数值解释。SQL
mysql.varbinary_n存储带长度声明的变长 VARBINARY。生成定义

域

对象签名用途源码定义
mysql."bigint signed"基于 bigint 的域SQL
mysql."bigint unsigned"基于 bigint 的域 · CHECK ((0 <= VALUE))SQL
mysql."binary"基于 bytea 的域SQL
mysql."int signed"基于 integer 的域SQL
mysql."int unsigned"基于 bigint 的域 · CHECK (((0 <= VALUE) AND (VALUE <= ‘4294967295’::bigint)))SQL
mysql."mediumint signed"基于 integer 的域 · CHECK (((’-8388608’::integer <= VALUE) AND (VALUE <= 8388607)))SQL
mysql."mediumint unsigned"基于 integer 的域 · CHECK (((0 <= VALUE) AND (VALUE <= 16777215)))SQL
mysql."real"基于 double precision 的域SQL
mysql."smallint signed"基于 smallint 的域SQL
mysql."smallint unsigned"基于 integer 的域 · CHECK (((0 <= VALUE) AND (VALUE <= 65535)))SQL
mysql."smallint"基于 smallint 的域SQL
mysql."tinyint signed"基于 smallint 的域 · CHECK (((’-128’::integer <= VALUE) AND (VALUE <= 127)))SQL
mysql."tinyint unsigned"基于 smallint 的域 · CHECK (((0 <= VALUE) AND (VALUE <= 255)))SQL
mysql."tinyint1 signed"基于 smallint 的域 · CHECK (((’-128’::integer <= VALUE) AND (VALUE <= 127)))SQL
mysql."tinyint1 unsigned"基于 smallint 的域 · CHECK (((0 <= VALUE) AND (VALUE <= 255)))SQL
mysql.blob基于 bytea 的域SQL
mysql.datetime基于 timestamp without time zone 的域SQL
mysql.double基于 double precision 的域SQL
mysql.mediumint基于 integer 的域 · CHECK (((’-8388608’::integer <= VALUE) AND (VALUE <= 8388607)))SQL
mysql.tinyint基于 smallint 的域 · CHECK (((’-128’::integer <= VALUE) AND (VALUE <= 127)))SQL
mysql.tinyint1基于 smallint 的域 · CHECK (((’-128’::integer <= VALUE) AND (VALUE <= 127)))SQL
mysql.varbinary基于 bytea 的域SQL
mysql.year_基于 integer 的域 · CHECK (((1901 <= VALUE) AND (VALUE <= 2155)))SQL

元数据枚举

对象签名用途源码定义
mys_informa_schema.enum_collations_pad_attribute用于 mys_informa_schema.collations.pad_attribute。可取值为 ‘PAD SPACE’, ‘NO PAD’。SQL
mys_informa_schema.enum_referential_constraints_delete_rule可取值为 ‘NO ACTION’, ‘RESTRICT’, ‘CASCADE’, ‘SET NULL’, ‘SET DEFAULT’。SQL
mys_informa_schema.enum_referential_constraints_match_option可取值为 ‘NONE’, ‘PARTIAL’, ‘FULL’。SQL
mys_informa_schema.enum_referential_constraints_update_rule可取值为 ‘NO ACTION’, ‘RESTRICT’, ‘CASCADE’, ‘SET NULL’, ‘SET DEFAULT’。SQL
mys_informa_schema.enum_resource_groups_resource_group_type用于 mys_informa_schema.resource_groups.resource_group_type。可取值为 ‘SYSTEM’, ‘USER’。SQL
mysql.enum_mysql_user用于 mysql.“user”.account_locked。可取值为 ‘N’, ‘Y’。SQL
mysql.enum_mysql_user_ssl_type用于 mysql.“user”.ssl_type。可取值为 ‘’, ‘ANY’, ‘X509’, ‘SPECIFIED’。SQL
mysql.enum_proc可取值为 ‘FUNCTION’, ‘PROCEDURE’。SQL
mysql.enum_security可取值为 ‘INVOKER’, ‘DEFINER’。SQL
performance_schema.enum_bin_log_trans_comp_stats_log_type用于 performance_schema.binary_log_transaction_compression_stats.log_type。可取值为 ‘BINARY’, ‘RELAY’。SQL
performance_schema.enum_error_log_prio用于 performance_schema.error_log.prio。可取值为 ‘System’, ‘Error’, ‘Warning’, ‘Note’。SQL
performance_schema.enum_evs_st_cur_nes_event_type用于 performance_schema.events_stages_current.nesting_event_type。可取值为 ‘TRANSACTION’, ‘STATEMENT’, ‘STAGE’, ‘WAIT’。SQL
performance_schema.enum_evs_st_his_long_nes_event_type用于 performance_schema.events_stages_history_long.nesting_event_type。可取值为 ‘TRANSACTION’, ‘STATEMENT’, ‘STAGE’, ‘WAIT’。SQL
performance_schema.enum_evs_st_his_nes_event_type用于 performance_schema.events_stages_history.nesting_event_type。可取值为 ‘TRANSACTION’, ‘STATEMENT’, ‘STAGE’, ‘WAIT’。SQL
performance_schema.enum_evs_stms_sumy_by_prg_obj_type用于 performance_schema.events_statements_summary_by_program.object_type。可取值为 ‘EVENT’, ‘FUNCTION’, ‘PROCEDURE’, ‘TABLE’, ‘TRIGGER’。SQL
performance_schema.enum_evs_stmts_cur_exe_engine用于 performance_schema.events_statements_current.execution_engine。可取值为 ‘PRIMARY’, ‘SECONDARY’。SQL
performance_schema.enum_evs_stmts_cur_nes_event_type用于 performance_schema.events_statements_current.nesting_event_type。可取值为 ‘TRANSACTION’, ‘STATEMENT’, ‘STAGE’, ‘WAIT’。SQL
performance_schema.enum_evs_stmts_his_exe_engine用于 performance_schema.events_statements_history.execution_engine。可取值为 ‘PRIMARY’, ‘SECONDARY’。SQL
performance_schema.enum_evs_stmts_his_long_exe_engine用于 performance_schema.events_statements_history_long.execution_engine。可取值为 ‘PRIMARY’, ‘SECONDARY’。SQL
performance_schema.enum_evs_stmts_his_long_nes_event_type用于 performance_schema.events_statements_history_long.nesting_event_type。可取值为 ‘TRANSACTION’, ‘STATEMENT’, ‘STAGE’, ‘WAIT’。SQL
performance_schema.enum_evs_stmts_his_nes_event_type用于 performance_schema.events_statements_history.nesting_event_type。可取值为 ‘TRANSACTION’, ‘STATEMENT’, ‘STAGE’, ‘WAIT’。SQL
performance_schema.enum_evs_trans_cur_access_mode用于 performance_schema.events_transactions_current.access_mode。可取值为 ‘READ ONLY’, ‘READ WRITE’。SQL
performance_schema.enum_evs_trans_cur_autocommit用于 performance_schema.events_transactions_current.autocommit。可取值为 ‘YES’, ‘NO’。SQL
performance_schema.enum_evs_trans_cur_nes_event_type用于 performance_schema.events_transactions_current.nesting_event_type。可取值为 ‘TRANSACTION’, ‘STATEMENT’, ‘STAGE’, ‘WAIT’。SQL
performance_schema.enum_evs_trans_cur_state用于 performance_schema.events_transactions_current.state。可取值为 ‘ACTIVE’, ‘COMMITTED’, ‘ROLLED BACK’。SQL
performance_schema.enum_evs_trans_his_access_mode用于 performance_schema.events_transactions_history.access_mode。可取值为 ‘READ ONLY’, ‘READ WRITE’。SQL
performance_schema.enum_evs_trans_his_autocommit用于 performance_schema.events_transactions_history.autocommit。可取值为 ‘YES’, ‘NO’。SQL
performance_schema.enum_evs_trans_his_long_access_mode用于 performance_schema.events_transactions_history_long.access_mode。可取值为 ‘READ ONLY’, ‘READ WRITE’。SQL
performance_schema.enum_evs_trans_his_long_autocommit用于 performance_schema.events_transactions_history_long.autocommit。可取值为 ‘YES’, ‘NO’。SQL
performance_schema.enum_evs_trans_his_long_nes_event_type用于 performance_schema.events_transactions_history_long.nesting_event_type。可取值为 ‘TRANSACTION’, ‘STATEMENT’, ‘STAGE’, ‘WAIT’。SQL
performance_schema.enum_evs_trans_his_long_state用于 performance_schema.events_transactions_history_long.state。可取值为 ‘ACTIVE’, ‘COMMITTED’, ‘ROLLED BACK’。SQL
performance_schema.enum_evs_trans_his_nesting_event_type用于 performance_schema.events_transactions_history.nesting_event_type。可取值为 ‘TRANSACTION’, ‘STATEMENT’, ‘STAGE’, ‘WAIT’。SQL
performance_schema.enum_evs_trans_his_state用于 performance_schema.events_transactions_history.state。可取值为 ‘ACTIVE’, ‘COMMITTED’, ‘ROLLED BACK’。SQL
performance_schema.enum_evs_waits_cur_nesting_event_type用于 performance_schema.events_waits_current.nesting_event_type。可取值为 ‘TRANSACTION’, ‘STATEMENT’, ‘STAGE’, ‘WAIT’。SQL
performance_schema.enum_evs_waits_his_long_nesting_event_type用于 performance_schema.events_waits_history_long.nesting_event_type。可取值为 ‘TRANSACTION’, ‘STATEMENT’, ‘STAGE’, ‘WAIT’。SQL
performance_schema.enum_evs_waits_his_nesting_event_type用于 performance_schema.events_waits_history.nesting_event_type。可取值为 ‘TRANSACTION’, ‘STATEMENT’, ‘STAGE’, ‘WAIT’。SQL
performance_schema.enum_host_cache_host_validated用于 performance_schema.host_cache.host_validated。可取值为 ‘YES’, ‘NO’。SQL
performance_schema.enum_perf_timers_timer_name用于 performance_schema.performance_timers.timer_name。可取值为 ‘CYCLE’, ‘NANOSECOND’, ‘MICROSECOND’, ‘MILLISECOND’, ‘THREAD_CPU’。SQL
performance_schema.enum_pl_exe_engine用于 performance_schema.processlist.execution_engine。可取值为 ‘PRIMARY’, ‘SECONDARY’。SQL
performance_schema.enum_pre_stmts_ins_exec_eng用于 performance_schema.prepared_statements_instances.execution_engine。可取值为 ‘PRIMARY’, ‘SECONDARY’。SQL
performance_schema.enum_pre_stmts_ins_owner_obj_type用于 performance_schema.prepared_statements_instances.owner_object_type。可取值为 ‘EVENT’, ‘FUNCTION’, ‘PROCEDURE’, ‘TABLE’, ‘TRIGGER’。SQL
performance_schema.enum_r_a_cn_as_gt_tott用于 performance_schema.replication_applier_configuration.assign_gtids_to_anonymous_transactions_type。可取值为 ‘OFF’, ‘LOCAL’, ‘UUID’。SQL
performance_schema.enum_r_a_cn_re_ro_ft用于 performance_schema.replication_applier_configuration.require_row_format。可取值为 ‘YES’, ‘NO’。SQL
performance_schema.enum_r_a_cn_re_ta_pkc用于 performance_schema.replication_applier_configuration.require_table_primary_key_check。可取值为 ‘STREAM’, ‘ON’, ‘OFF’。SQL
performance_schema.enum_r_a_f_cnf_by用于 performance_schema.replication_applier_filters.configured_by。可取值为 ‘STARTUP_OPTIONS’, ‘CHANGE_REPLICATION_FILTER’, ‘STARTUP_OPTIONS_FOR_CHANNEL’, ‘CHANGE_REPLICATION_FILTER_FOR_CHANNEL’。SQL
performance_schema.enum_repl_al_st_by_wk_ser_state用于 performance_schema.replication_applier_status_by_worker.service_state。可取值为 ‘ON’, ‘OFF’。SQL
performance_schema.enum_repl_app_gl_fil_cnf_by用于 performance_schema.replication_applier_global_filters.configured_by。可取值为 ‘STARTUP_OPTIONS’, ‘CHANGE_REPLICATION_FILTER’。SQL
performance_schema.enum_repl_app_st_by_co_ser_st用于 performance_schema.replication_applier_status_by_coordinator.service_state。可取值为 ‘ON’, ‘OFF’。SQL
performance_schema.enum_repl_app_st_ser_state用于 performance_schema.replication_applier_status.service_state。可取值为 ‘ON’, ‘OFF’。SQL
performance_schema.enum_repl_con_conf_auto_position用于 performance_schema.replication_connection_configuration.auto_position。可取值为 ‘1’, ‘0’。SQL
performance_schema.enum_repl_con_conf_get_public_key用于 performance_schema.replication_connection_configuration.get_public_key。可取值为 ‘YES’, ‘NO’。SQL
performance_schema.enum_repl_con_conf_gtid_only用于 performance_schema.replication_connection_configuration.gtid_only。可取值为 ‘1’, ‘0’。SQL
performance_schema.enum_repl_con_conf_sou_con_auto_fo用于 performance_schema.replication_connection_configuration.source_connection_auto_failover。可取值为 ‘1’, ‘0’。SQL
performance_schema.enum_repl_con_conf_ssl_allowed用于 performance_schema.replication_connection_configuration.ssl_allowed。可取值为 ‘YES’, ‘NO’, ‘IGNORED’。SQL
performance_schema.enum_repl_con_conf_ssl_verify_svr_cert用于 performance_schema.replication_connection_configuration.ssl_verify_server_certificate。可取值为 ‘YES’, ‘NO’。SQL
performance_schema.enum_repl_con_status_service_state用于 performance_schema.replication_connection_status.service_state。可取值为 ‘ON’, ‘OFF’, ‘CONNECTING’。SQL
performance_schema.enum_setup_actors_enabled用于 performance_schema.setup_actors.enabled。可取值为 ‘YES’, ‘NO’。SQL
performance_schema.enum_setup_actors_history用于 performance_schema.setup_actors.history。可取值为 ‘YES’, ‘NO’。SQL
performance_schema.enum_setup_consumers_enabled用于 performance_schema.setup_consumers.enabled。可取值为 ‘YES’, ‘NO’。SQL
performance_schema.enum_setup_instruments_enabled用于 performance_schema.setup_instruments.enabled。可取值为 ‘YES’, ‘NO’。SQL
performance_schema.enum_setup_instruments_timed用于 performance_schema.setup_instruments.timed。可取值为 ‘YES’, ‘NO’。SQL
performance_schema.enum_setup_objects_enabled用于 performance_schema.setup_objects.enabled。可取值为 ‘YES’, ‘NO’。SQL
performance_schema.enum_setup_objects_object_type用于 performance_schema.setup_objects.object_type。可取值为 ‘EVENT’, ‘FUNCTION’, ‘PROCEDURE’, ‘TABLE’, ‘TRIGGER’。SQL
performance_schema.enum_setup_objects_timed用于 performance_schema.setup_objects.timed。可取值为 ‘YES’, ‘NO’。SQL
performance_schema.enum_setup_threads_enabled用于 performance_schema.setup_threads.enabled。可取值为 ‘YES’, ‘NO’。SQL
performance_schema.enum_setup_threads_history用于 performance_schema.setup_threads.history。可取值为 ‘YES’, ‘NO’。SQL
performance_schema.enum_socket_instances_state用于 performance_schema.socket_instances.state。可取值为 ‘IDLE’, ‘ACTIVE’。SQL
performance_schema.enum_threads_execution_engine用于 performance_schema.threads.execution_engine。可取值为 ‘PRIMARY’, ‘SECONDARY’。SQL
performance_schema.enum_threads_history用于 performance_schema.threads.history。可取值为 ‘YES’, ‘NO’。SQL
performance_schema.enum_threads_instrumented用于 performance_schema.threads.instrumented。可取值为 ‘YES’, ‘NO’。SQL
performance_schema.enum_variables_info_variable_source用于 performance_schema.variables_info.variable_source。可取值为 ‘COMPILED’, ‘GLOBAL’, ‘SERVER’, ‘EXPLICIT’, ‘EXTRA’, ‘USER’, ‘LOGIN’, ‘COMMAND_LINE’, ‘PERSISTED’, ‘DYNAMIC’。SQL