Skip to content

Types and domains

SQL types used by column declarations, binary literals and metadata tables.

SQL types used by column declarations, binary literals and metadata tables.

Binary base types

SignaturePurposeSource definition
mysql.binary_nLength-qualified fixed-width BINARY storage.Generated definition
mysql.hexlitMySQL hex/bit literal with byte-string and numeric interpretations.SQL
mysql.varbinary_nLength-qualified variable-width VARBINARY storage.Generated definition

Domains

SignaturePurposeSource definition
mysql."bigint signed"Domain over bigintSQL
mysql."bigint unsigned"Domain over bigint · CHECK ((0 <= VALUE))SQL
mysql."binary"Domain over byteaSQL
mysql."int signed"Domain over integerSQL
mysql."int unsigned"Domain over bigint · CHECK (((0 <= VALUE) AND (VALUE <= ‘4294967295’::bigint)))SQL
mysql."mediumint signed"Domain over integer · CHECK (((’-8388608’::integer <= VALUE) AND (VALUE <= 8388607)))SQL
mysql."mediumint unsigned"Domain over integer · CHECK (((0 <= VALUE) AND (VALUE <= 16777215)))SQL
mysql."real"Domain over double precisionSQL
mysql."smallint signed"Domain over smallintSQL
mysql."smallint unsigned"Domain over integer · CHECK (((0 <= VALUE) AND (VALUE <= 65535)))SQL
mysql."smallint"Domain over smallintSQL
mysql."tinyint signed"Domain over smallint · CHECK (((’-128’::integer <= VALUE) AND (VALUE <= 127)))SQL
mysql."tinyint unsigned"Domain over smallint · CHECK (((0 <= VALUE) AND (VALUE <= 255)))SQL
mysql."tinyint1 signed"Domain over smallint · CHECK (((’-128’::integer <= VALUE) AND (VALUE <= 127)))SQL
mysql."tinyint1 unsigned"Domain over smallint · CHECK (((0 <= VALUE) AND (VALUE <= 255)))SQL
mysql.blobDomain over byteaSQL
mysql.datetimeDomain over timestamp without time zoneSQL
mysql.doubleDomain over double precisionSQL
mysql.mediumintDomain over integer · CHECK (((’-8388608’::integer <= VALUE) AND (VALUE <= 8388607)))SQL
mysql.tinyintDomain over smallint · CHECK (((’-128’::integer <= VALUE) AND (VALUE <= 127)))SQL
mysql.tinyint1Domain over smallint · CHECK (((’-128’::integer <= VALUE) AND (VALUE <= 127)))SQL
mysql.varbinaryDomain over byteaSQL
mysql.year_Domain over integer · CHECK (((1901 <= VALUE) AND (VALUE <= 2155)))SQL

Metadata enumerations

SignaturePurposeSource definition
mys_informa_schema.enum_collations_pad_attributeUsed by mys_informa_schema.collations.pad_attribute. Allowed values are ‘PAD SPACE’, ‘NO PAD’.SQL
mys_informa_schema.enum_referential_constraints_delete_ruleAllowed values are ‘NO ACTION’, ‘RESTRICT’, ‘CASCADE’, ‘SET NULL’, ‘SET DEFAULT’.SQL
mys_informa_schema.enum_referential_constraints_match_optionAllowed values are ‘NONE’, ‘PARTIAL’, ‘FULL’.SQL
mys_informa_schema.enum_referential_constraints_update_ruleAllowed values are ‘NO ACTION’, ‘RESTRICT’, ‘CASCADE’, ‘SET NULL’, ‘SET DEFAULT’.SQL
mys_informa_schema.enum_resource_groups_resource_group_typeUsed by mys_informa_schema.resource_groups.resource_group_type. Allowed values are ‘SYSTEM’, ‘USER’.SQL
mysql.enum_mysql_userUsed by mysql.“user”.account_locked. Allowed values are ‘N’, ‘Y’.SQL
mysql.enum_mysql_user_ssl_typeUsed by mysql.“user”.ssl_type. Allowed values are ‘’, ‘ANY’, ‘X509’, ‘SPECIFIED’.SQL
mysql.enum_procAllowed values are ‘FUNCTION’, ‘PROCEDURE’.SQL
mysql.enum_securityAllowed values are ‘INVOKER’, ‘DEFINER’.SQL
performance_schema.enum_bin_log_trans_comp_stats_log_typeUsed by performance_schema.binary_log_transaction_compression_stats.log_type. Allowed values are ‘BINARY’, ‘RELAY’.SQL
performance_schema.enum_error_log_prioUsed by performance_schema.error_log.prio. Allowed values are ‘System’, ‘Error’, ‘Warning’, ‘Note’.SQL
performance_schema.enum_evs_st_cur_nes_event_typeUsed by performance_schema.events_stages_current.nesting_event_type. Allowed values are ‘TRANSACTION’, ‘STATEMENT’, ‘STAGE’, ‘WAIT’.SQL
performance_schema.enum_evs_st_his_long_nes_event_typeUsed by performance_schema.events_stages_history_long.nesting_event_type. Allowed values are ‘TRANSACTION’, ‘STATEMENT’, ‘STAGE’, ‘WAIT’.SQL
performance_schema.enum_evs_st_his_nes_event_typeUsed by performance_schema.events_stages_history.nesting_event_type. Allowed values are ‘TRANSACTION’, ‘STATEMENT’, ‘STAGE’, ‘WAIT’.SQL
performance_schema.enum_evs_stms_sumy_by_prg_obj_typeUsed by performance_schema.events_statements_summary_by_program.object_type. Allowed values are ‘EVENT’, ‘FUNCTION’, ‘PROCEDURE’, ‘TABLE’, ‘TRIGGER’.SQL
performance_schema.enum_evs_stmts_cur_exe_engineUsed by performance_schema.events_statements_current.execution_engine. Allowed values are ‘PRIMARY’, ‘SECONDARY’.SQL
performance_schema.enum_evs_stmts_cur_nes_event_typeUsed by performance_schema.events_statements_current.nesting_event_type. Allowed values are ‘TRANSACTION’, ‘STATEMENT’, ‘STAGE’, ‘WAIT’.SQL
performance_schema.enum_evs_stmts_his_exe_engineUsed by performance_schema.events_statements_history.execution_engine. Allowed values are ‘PRIMARY’, ‘SECONDARY’.SQL
performance_schema.enum_evs_stmts_his_long_exe_engineUsed by performance_schema.events_statements_history_long.execution_engine. Allowed values are ‘PRIMARY’, ‘SECONDARY’.SQL
performance_schema.enum_evs_stmts_his_long_nes_event_typeUsed by performance_schema.events_statements_history_long.nesting_event_type. Allowed values are ‘TRANSACTION’, ‘STATEMENT’, ‘STAGE’, ‘WAIT’.SQL
performance_schema.enum_evs_stmts_his_nes_event_typeUsed by performance_schema.events_statements_history.nesting_event_type. Allowed values are ‘TRANSACTION’, ‘STATEMENT’, ‘STAGE’, ‘WAIT’.SQL
performance_schema.enum_evs_trans_cur_access_modeUsed by performance_schema.events_transactions_current.access_mode. Allowed values are ‘READ ONLY’, ‘READ WRITE’.SQL
performance_schema.enum_evs_trans_cur_autocommitUsed by performance_schema.events_transactions_current.autocommit. Allowed values are ‘YES’, ‘NO’.SQL
performance_schema.enum_evs_trans_cur_nes_event_typeUsed by performance_schema.events_transactions_current.nesting_event_type. Allowed values are ‘TRANSACTION’, ‘STATEMENT’, ‘STAGE’, ‘WAIT’.SQL
performance_schema.enum_evs_trans_cur_stateUsed by performance_schema.events_transactions_current.state. Allowed values are ‘ACTIVE’, ‘COMMITTED’, ‘ROLLED BACK’.SQL
performance_schema.enum_evs_trans_his_access_modeUsed by performance_schema.events_transactions_history.access_mode. Allowed values are ‘READ ONLY’, ‘READ WRITE’.SQL
performance_schema.enum_evs_trans_his_autocommitUsed by performance_schema.events_transactions_history.autocommit. Allowed values are ‘YES’, ‘NO’.SQL
performance_schema.enum_evs_trans_his_long_access_modeUsed by performance_schema.events_transactions_history_long.access_mode. Allowed values are ‘READ ONLY’, ‘READ WRITE’.SQL
performance_schema.enum_evs_trans_his_long_autocommitUsed by performance_schema.events_transactions_history_long.autocommit. Allowed values are ‘YES’, ‘NO’.SQL
performance_schema.enum_evs_trans_his_long_nes_event_typeUsed by performance_schema.events_transactions_history_long.nesting_event_type. Allowed values are ‘TRANSACTION’, ‘STATEMENT’, ‘STAGE’, ‘WAIT’.SQL
performance_schema.enum_evs_trans_his_long_stateUsed by performance_schema.events_transactions_history_long.state. Allowed values are ‘ACTIVE’, ‘COMMITTED’, ‘ROLLED BACK’.SQL
performance_schema.enum_evs_trans_his_nesting_event_typeUsed by performance_schema.events_transactions_history.nesting_event_type. Allowed values are ‘TRANSACTION’, ‘STATEMENT’, ‘STAGE’, ‘WAIT’.SQL
performance_schema.enum_evs_trans_his_stateUsed by performance_schema.events_transactions_history.state. Allowed values are ‘ACTIVE’, ‘COMMITTED’, ‘ROLLED BACK’.SQL
performance_schema.enum_evs_waits_cur_nesting_event_typeUsed by performance_schema.events_waits_current.nesting_event_type. Allowed values are ‘TRANSACTION’, ‘STATEMENT’, ‘STAGE’, ‘WAIT’.SQL
performance_schema.enum_evs_waits_his_long_nesting_event_typeUsed by performance_schema.events_waits_history_long.nesting_event_type. Allowed values are ‘TRANSACTION’, ‘STATEMENT’, ‘STAGE’, ‘WAIT’.SQL
performance_schema.enum_evs_waits_his_nesting_event_typeUsed by performance_schema.events_waits_history.nesting_event_type. Allowed values are ‘TRANSACTION’, ‘STATEMENT’, ‘STAGE’, ‘WAIT’.SQL
performance_schema.enum_host_cache_host_validatedUsed by performance_schema.host_cache.host_validated. Allowed values are ‘YES’, ‘NO’.SQL
performance_schema.enum_perf_timers_timer_nameUsed by performance_schema.performance_timers.timer_name. Allowed values are ‘CYCLE’, ‘NANOSECOND’, ‘MICROSECOND’, ‘MILLISECOND’, ‘THREAD_CPU’.SQL
performance_schema.enum_pl_exe_engineUsed by performance_schema.processlist.execution_engine. Allowed values are ‘PRIMARY’, ‘SECONDARY’.SQL
performance_schema.enum_pre_stmts_ins_exec_engUsed by performance_schema.prepared_statements_instances.execution_engine. Allowed values are ‘PRIMARY’, ‘SECONDARY’.SQL
performance_schema.enum_pre_stmts_ins_owner_obj_typeUsed by performance_schema.prepared_statements_instances.owner_object_type. Allowed values are ‘EVENT’, ‘FUNCTION’, ‘PROCEDURE’, ‘TABLE’, ‘TRIGGER’.SQL
performance_schema.enum_r_a_cn_as_gt_tottUsed by performance_schema.replication_applier_configuration.assign_gtids_to_anonymous_transactions_type. Allowed values are ‘OFF’, ‘LOCAL’, ‘UUID’.SQL
performance_schema.enum_r_a_cn_re_ro_ftUsed by performance_schema.replication_applier_configuration.require_row_format. Allowed values are ‘YES’, ‘NO’.SQL
performance_schema.enum_r_a_cn_re_ta_pkcUsed by performance_schema.replication_applier_configuration.require_table_primary_key_check. Allowed values are ‘STREAM’, ‘ON’, ‘OFF’.SQL
performance_schema.enum_r_a_f_cnf_byUsed by performance_schema.replication_applier_filters.configured_by. Allowed values are ‘STARTUP_OPTIONS’, ‘CHANGE_REPLICATION_FILTER’, ‘STARTUP_OPTIONS_FOR_CHANNEL’, ‘CHANGE_REPLICATION_FILTER_FOR_CHANNEL’.SQL
performance_schema.enum_repl_al_st_by_wk_ser_stateUsed by performance_schema.replication_applier_status_by_worker.service_state. Allowed values are ‘ON’, ‘OFF’.SQL
performance_schema.enum_repl_app_gl_fil_cnf_byUsed by performance_schema.replication_applier_global_filters.configured_by. Allowed values are ‘STARTUP_OPTIONS’, ‘CHANGE_REPLICATION_FILTER’.SQL
performance_schema.enum_repl_app_st_by_co_ser_stUsed by performance_schema.replication_applier_status_by_coordinator.service_state. Allowed values are ‘ON’, ‘OFF’.SQL
performance_schema.enum_repl_app_st_ser_stateUsed by performance_schema.replication_applier_status.service_state. Allowed values are ‘ON’, ‘OFF’.SQL
performance_schema.enum_repl_con_conf_auto_positionUsed by performance_schema.replication_connection_configuration.auto_position. Allowed values are ‘1’, ‘0’.SQL
performance_schema.enum_repl_con_conf_get_public_keyUsed by performance_schema.replication_connection_configuration.get_public_key. Allowed values are ‘YES’, ‘NO’.SQL
performance_schema.enum_repl_con_conf_gtid_onlyUsed by performance_schema.replication_connection_configuration.gtid_only. Allowed values are ‘1’, ‘0’.SQL
performance_schema.enum_repl_con_conf_sou_con_auto_foUsed by performance_schema.replication_connection_configuration.source_connection_auto_failover. Allowed values are ‘1’, ‘0’.SQL
performance_schema.enum_repl_con_conf_ssl_allowedUsed by performance_schema.replication_connection_configuration.ssl_allowed. Allowed values are ‘YES’, ‘NO’, ‘IGNORED’.SQL
performance_schema.enum_repl_con_conf_ssl_verify_svr_certUsed by performance_schema.replication_connection_configuration.ssl_verify_server_certificate. Allowed values are ‘YES’, ‘NO’.SQL
performance_schema.enum_repl_con_status_service_stateUsed by performance_schema.replication_connection_status.service_state. Allowed values are ‘ON’, ‘OFF’, ‘CONNECTING’.SQL
performance_schema.enum_setup_actors_enabledUsed by performance_schema.setup_actors.enabled. Allowed values are ‘YES’, ‘NO’.SQL
performance_schema.enum_setup_actors_historyUsed by performance_schema.setup_actors.history. Allowed values are ‘YES’, ‘NO’.SQL
performance_schema.enum_setup_consumers_enabledUsed by performance_schema.setup_consumers.enabled. Allowed values are ‘YES’, ‘NO’.SQL
performance_schema.enum_setup_instruments_enabledUsed by performance_schema.setup_instruments.enabled. Allowed values are ‘YES’, ‘NO’.SQL
performance_schema.enum_setup_instruments_timedUsed by performance_schema.setup_instruments.timed. Allowed values are ‘YES’, ‘NO’.SQL
performance_schema.enum_setup_objects_enabledUsed by performance_schema.setup_objects.enabled. Allowed values are ‘YES’, ‘NO’.SQL
performance_schema.enum_setup_objects_object_typeUsed by performance_schema.setup_objects.object_type. Allowed values are ‘EVENT’, ‘FUNCTION’, ‘PROCEDURE’, ‘TABLE’, ‘TRIGGER’.SQL
performance_schema.enum_setup_objects_timedUsed by performance_schema.setup_objects.timed. Allowed values are ‘YES’, ‘NO’.SQL
performance_schema.enum_setup_threads_enabledUsed by performance_schema.setup_threads.enabled. Allowed values are ‘YES’, ‘NO’.SQL
performance_schema.enum_setup_threads_historyUsed by performance_schema.setup_threads.history. Allowed values are ‘YES’, ‘NO’.SQL
performance_schema.enum_socket_instances_stateUsed by performance_schema.socket_instances.state. Allowed values are ‘IDLE’, ‘ACTIVE’.SQL
performance_schema.enum_threads_execution_engineUsed by performance_schema.threads.execution_engine. Allowed values are ‘PRIMARY’, ‘SECONDARY’.SQL
performance_schema.enum_threads_historyUsed by performance_schema.threads.history. Allowed values are ‘YES’, ‘NO’.SQL
performance_schema.enum_threads_instrumentedUsed by performance_schema.threads.instrumented. Allowed values are ‘YES’, ‘NO’.SQL
performance_schema.enum_variables_info_variable_sourceUsed by performance_schema.variables_info.variable_source. Allowed values are ‘COMPILED’, ‘GLOBAL’, ‘SERVER’, ‘EXPLICIT’, ‘EXTRA’, ‘USER’, ‘LOGIN’, ‘COMMAND_LINE’, ‘PERSISTED’, ‘DYNAMIC’.SQL