This is the multi-page printable view of this section.
Functions
- 1: String and binary functions
- 2: Numeric functions
- 3: Date and time functions
- 4: Conditional functions
- 5: Session functions
- 6: Type conversion helpers
- 7: Comparison operator functions
- 8: Arithmetic operator functions
- 9: Bitwise and logical operator functions
- 10: Pattern and JSON operator functions
- 11: String and number helpers
- 12: Temporal conversion helpers
- 13: Binary and string storage helpers
- 14: Aggregate support functions
- 15: Index support functions
- 16: Session state and variable helpers
- 17: DDL and write helpers
- 18: SHOW and metadata helpers
Find a function by name, then choose the overload that matches the argument types.
The first five categories contain functions for application SQL. The remaining categories list the entry points used by the dialect, operators, indexes and metadata queries.
By purpose
| Category | Entries | Look up |
|---|---|---|
| String and binary functions | 324 | Use the return type to distinguish text and byte-string overloads. |
| Numeric functions | 45 | Rounding, division, base conversion and numeric calculations. |
| Date and time functions | 162 | Date arithmetic, formatting, parsing, extraction and clock values. |
| Conditional functions | 335 | IF, IFNULL and ISNULL. Match each branch’s type as well as the condition type. |
| Session functions | 18 | Connection identity, selected database, named locks and statement state. |
| Type conversion helpers | 112 | Internal routines used by casts, coercion and expression rewriting. |
| Comparison operator functions | 278 | Internal entry points behind equality and ordering comparisons. |
| Arithmetic operator functions | 193 | Internal routines for arithmetic on mixed MySQL operand types. |
| Bitwise and logical operator functions | 181 | Internal routines for bit operations and truth-value tests. |
| Pattern and JSON operator functions | 41 | Internal routines for LIKE, regular expressions and JSON field access. |
| String and number helpers | 9 | Internal routines used by string searches, validation and rounding. |
| Temporal conversion helpers | 15 | Internal routines for date normalization, week modes and numeric date arithmetic. |
| Binary and string storage helpers | 48 | Internal routines for type I/O, binary expression evaluation and string results. |
| Aggregate support functions | 12 | Internal transition and final functions invoked while computing an aggregate. |
| Index support functions | 24 | Internal functions for index access, key comparison, hashing and operator-class registration. |
| Session state and variable helpers | 16 | Internal interfaces behind SET, SHOW, user variables and authentication cache management. |
| DDL and write helpers | 15 | Internal routines invoked by column expressions, sequences and row triggers. |
| SHOW and metadata helpers | 31 | Internal routines that format catalog values and construct result sets for MySQL clients. |
By function name
_
_add_bool · _add_null · _calc_days_in_year · _calc_week · _calc_weekday · _convert_format_to_halo_for_number_datetime · _convert_format_to_halo_for_string_datetime · _convert_format_to_halo_for_string_number_datetime · _convert_format_to_halo_for_string_string_datetime · _date_padding · _process_for_number_datetime · _process_for_string_number_datetime · _sub_bool · _sub_null · _week_mode
A
adddate · addtime · amend_def_val · amend_def_val_for_internal · anycompatibleandbytea · anycompatiblecondandbytea · anycompatiblecondorbytea · anycompatibledivbytea · anycompatibleeqbytea · anycompatiblegebytea · anycompatiblegtbytea · anycompatiblelebytea · anycompatiblelikebytea · anycompatibleltbytea · anycompatiblemibytea · anycompatiblemodbytea · anycompatiblemulbytea · anycompatiblenebytea · anycompatiblenlikebytea · anycompatiblenonarray_or_text · anycompatiblenregexpbinbytea · anycompatiblenregexpbytea · anycompatibleorbytea · anycompatibleplbytea · anycompatibleregexpbinbytea · anycompatibleregexpbytea · anynonarray_or_text · array_to_string_for_mysql · ascii · auto_increment_advance
B
bigint_add_char · bigint_add_text · bigint_add_varchar · bigint_and_bigint · bigint_bitxor_bigint · bigint_divide_char · bigint_divide_text · bigint_divide_varchar · bigint_like_text · bigint_minus_char · bigint_minus_text · bigint_minus_varchar · bigint_mod_char · bigint_mod_text · bigint_mod_varchar · bigint_multi_char · bigint_multi_text · bigint_multi_varchar · bigint_not_like_text · bigint_or_bigint · bigint_xor_bigint · bigintbgeqtext · bigintbgtext · bigintleeqtext · bigintletext · bin · binary_n · binary_n_bpchar · binary_n_cmp · binary_n_cmp_bytea · binary_n_cmp_varbinary_n · binary_n_eq · binary_n_ge · binary_n_gt · binary_n_hash · binary_n_hash_extended · binary_n_in · binary_n_le · binary_n_lt · binary_n_ne · binary_n_out · binary_n_recv · binary_n_send · binary_n_text · binary_n_typmodin · binary_n_typmodout · binary_n_varchar · binary_regular_expr · binary_regular_expr_not · binary_truth · bit_and_varbit · bit_and_varbit_final · bit_count · bit_eq_boolean · bit_or_varbit · bit_or_varbit_final · bit_to_text · bit_xor_varbit · bit_xor_varbit_final · bool_and_int2 · bool_and_int4 · bool_and_int8 · bool_or_bool · bool_or_int2 · bool_or_int4 · bool_or_int8 · boolcondandbool · boolean_eq_bit · boolean_eq_varbit · booleqint2 · booleqint4 · booleqint8 · boolneint2 · boolneint4 · boolneint8 · bpcharlike · bpcharnlike · btrim · bytea2bit · bytea2bool · bytea2bpchar · bytea2date · bytea2float4 · bytea2float8 · bytea2int2 · bytea2int4 · bytea2int8 · bytea2numeric · bytea2text · bytea2time · bytea2timestamp · bytea2timestamptz · bytea2timetz · bytea2varbit · bytea2varchar · bytea_and_hexlit · bytea_cmp_binary_n · bytea_cmp_varbinary_n · bytea_div_hexlit · bytea_eq_hexlit · bytea_ge_hexlit · bytea_gt_hexlit · bytea_le_hexlit · bytea_like_hexlit · bytea_lt_hexlit · bytea_mi_hexlit · bytea_mod_hexlit · bytea_mul_hexlit · bytea_ne_hexlit · bytea_nlike_hexlit · bytea_nseq_hexlit · bytea_or_hexlit · bytea_pl_hexlit · bytea_shl_hexlit · bytea_shr_hexlit · bytea_xor_hexlit · byteaandanycompatible · byteaandbytea · byteacondandanycompatible · byteacondandbytea · byteacondoranycompatible · byteacondorbytea · byteadivanycompatible · byteadivbytea · byteaeqanycompatible · byteageanycompatible · byteagebytea · byteagtanycompatible · byteagtbytea · bytealeanycompatible · bytealebytea · bytealikeanycompatible · bytealtanycompatible · bytealtbytea · byteamianycompatible · byteamibytea · byteamodanycompatible · byteamodbytea · byteamulanycompatible · byteamulbytea · byteaneanycompatible · byteanlikeanycompatible · byteanregexpanycompatible · byteanregexpbinanycompatible · byteanregexpbinbytea · byteanregexpbytea · byteaoranycompatible · byteaorbytea · byteaplanycompatible · byteaplbytea · bytearegexpanycompatible · bytearegexpbinanycompatible · bytearegexpbinbytea · bytearegexpbytea
C
cast_bigint_to_boolean · cast_bigint_to_varbit · cast_bit_to_boolean · cast_bit_to_bytea · cast_bool_to_varbit · cast_boolean_to_bigint · cast_boolean_to_binary_n · cast_boolean_to_bytea · cast_boolean_to_float4 · cast_boolean_to_float8 · cast_boolean_to_numeric · cast_boolean_to_tinyint · cast_boolean_to_varbinary_n · cast_char · cast_char_to_bigint · cast_char_to_int · cast_char_to_tinyint · cast_int_to_varbit · cast_numeric_source · cast_smallint_to_boolean · cast_smallint_to_varbit · cast_text_to_bigint · cast_text_to_date · cast_text_to_int · cast_text_to_time · cast_text_to_timestamp · cast_text_to_timestamptz · cast_text_to_tinyint · cast_varbit_to_bigint · cast_varbit_to_boolean · cast_varbit_to_int · cast_varbit_to_smallint · cast_varchar_to_bigint · cast_varchar_to_int · cast_varchar_to_tinyint · ceil · ceil_for_mysql · ceiling · char_add_bigint · char_add_char · char_divide_bigint · char_divide_char · char_eq_char_for_date_format · char_length · char_minus_bigint · char_minus_char · char_mod_bigint · char_mod_char · char_multi_bigint · char_multi_char · character_length · check_set · clear_user_variables · column_default · column_domain · column_extra · column_generation · concat · concat_one · concat_pair · concat_ws · concat_ws_bytes · connection_id · conv · convert_bigint_to_varbit · convert_char_to_float8 · convert_date_to_float8 · convert_digit_text_to_text_for_mysql · convert_int_to_varbit · convert_smallint_to_varbit · convert_text_hex_to_text_varbit · convert_text_to_bigint_for_mysql · convert_text_to_digit_text_for_mysql · convert_text_to_float8 · convert_text_to_int8 · convert_text_varbit_to_bigint · convert_time_text_to_numeric_for_mysql · convert_time_to_float8 · convert_timestamp_to_float8 · convert_to_time_format · convert_tz · convert_using · convert_varbit_to_bigint · convert_varbit_to_int · convert_varbit_to_smallint · convert_varchar_to_float8 · curdate · curdate_add · curdate_sub · current_user · curtime
D
database · date · date_add · date_add_bigint · date_add_int · date_add_smallint · date_eq_text · date_format · date_ge_text · date_gt_text · date_le_text · date_lt_text · date_minus_bigint · date_minus_int · date_minus_smallint · date_ne_text · date_sub · datediff · dateeqtext · datenetext · day · dayname · dayofmonth · dayofweek · dayofyear · decimal_column_type · decimal_ps · div_float4_float4 · div_float4_float8 · div_float8_float4 · div_float8_float8 · div_float8_text · div_int2_int2 · div_int2_int4 · div_int2_int8 · div_int4_int2 · div_int4_int4 · div_int4_int8 · div_int8_int2 · div_int8_int4 · div_int8_int8 · div_text_float8 · div_text_text · dummy_min_finalfunc_for_bytea · dummy_min_sfunc_for_bytea
E
elt · elt_index · export_set · extract
F
field · find_in_set · float8_and_hexlit · float8_div_hexlit · float8_eq_hexlit · float8_ge_hexlit · float8_gt_hexlit · float8_le_hexlit · float8_lt_hexlit · float8_mi_hexlit · float8_mod_hexlit · float8_mul_hexlit · float8_ne_hexlit · float8_nseq_hexlit · float8_or_hexlit · float8_pl_hexlit · float8_shl_hexlit · float8_shr_hexlit · float8_xor_hexlit · floor · floor_for_mysql · flush_auth_cache · format · found_rows · from_days · from_unixtime
G
generated_column · generated_numeric · generated_value · generated_varchar · get_column_extra · get_column_key · get_func_def · get_funcs_procs_parameters · get_lock · get_mysql_proc_arg_mode · get_mysql_type_name · get_proc_def · get_seq_in_index · get_system_global_variable · get_system_session_variable · get_system_variable · get_user_var · getenv
H
hex · hexlit_and_bytea · hexlit_and_float8 · hexlit_and_hexlit · hexlit_and_int2 · hexlit_and_int4 · hexlit_and_int8 · hexlit_and_numeric · hexlit_and_text · hexlit_and_varbit · hexlit_bit · hexlit_bool · hexlit_bpchar · hexlit_cmp · hexlit_cmp_support · hexlit_div_bytea · hexlit_div_float8 · hexlit_div_hexlit · hexlit_div_int2 · hexlit_div_int4 · hexlit_div_int8 · hexlit_div_numeric · hexlit_div_text · hexlit_div_varbit · hexlit_eq · hexlit_eq_bytea · hexlit_eq_float8 · hexlit_eq_int2 · hexlit_eq_int4 · hexlit_eq_int8 · hexlit_eq_numeric · hexlit_eq_text · hexlit_eq_varbit · hexlit_float4 · hexlit_float8 · hexlit_ge · hexlit_ge_bytea · hexlit_ge_float8 · hexlit_ge_int2 · hexlit_ge_int4 · hexlit_ge_int8 · hexlit_ge_numeric · hexlit_ge_text · hexlit_ge_varbit · hexlit_gt · hexlit_gt_bytea · hexlit_gt_float8 · hexlit_gt_int2 · hexlit_gt_int4 · hexlit_gt_int8 · hexlit_gt_numeric · hexlit_gt_text · hexlit_gt_varbit · hexlit_hash · hexlit_hash_extended · hexlit_in · hexlit_int2 · hexlit_int4 · hexlit_int8 · hexlit_le · hexlit_le_bytea · hexlit_le_float8 · hexlit_le_int2 · hexlit_le_int4 · hexlit_le_int8 · hexlit_le_numeric · hexlit_le_text · hexlit_le_varbit · hexlit_like · hexlit_like_bytea · hexlit_like_text · hexlit_lt · hexlit_lt_bytea · hexlit_lt_float8 · hexlit_lt_int2 · hexlit_lt_int4 · hexlit_lt_int8 · hexlit_lt_numeric · hexlit_lt_text · hexlit_lt_varbit · hexlit_mi_bytea · hexlit_mi_float8 · hexlit_mi_hexlit · hexlit_mi_int2 · hexlit_mi_int4 · hexlit_mi_int8 · hexlit_mi_numeric · hexlit_mi_text · hexlit_mi_varbit · hexlit_mod_bytea · hexlit_mod_float8 · hexlit_mod_hexlit · hexlit_mod_int2 · hexlit_mod_int4 · hexlit_mod_int8 · hexlit_mod_numeric · hexlit_mod_text · hexlit_mod_varbit · hexlit_mul_bytea · hexlit_mul_float8 · hexlit_mul_hexlit · hexlit_mul_int2 · hexlit_mul_int4 · hexlit_mul_int8 · hexlit_mul_numeric · hexlit_mul_text · hexlit_mul_varbit · hexlit_ne · hexlit_ne_bytea · hexlit_ne_float8 · hexlit_ne_int2 · hexlit_ne_int4 · hexlit_ne_int8 · hexlit_ne_numeric · hexlit_ne_text · hexlit_ne_varbit · hexlit_nlike · hexlit_nlike_bytea · hexlit_nlike_text · hexlit_not · hexlit_nseq_bytea · hexlit_nseq_float8 · hexlit_nseq_hexlit · hexlit_nseq_int2 · hexlit_nseq_int4 · hexlit_nseq_int8 · hexlit_nseq_numeric · hexlit_nseq_text · hexlit_nseq_varbit · hexlit_numeric · hexlit_or_bytea · hexlit_or_float8 · hexlit_or_hexlit · hexlit_or_int2 · hexlit_or_int4 · hexlit_or_int8 · hexlit_or_numeric · hexlit_or_text · hexlit_or_varbit · hexlit_out · hexlit_pl_bytea · hexlit_pl_float8 · hexlit_pl_hexlit · hexlit_pl_int2 · hexlit_pl_int4 · hexlit_pl_int8 · hexlit_pl_numeric · hexlit_pl_text · hexlit_pl_varbit · hexlit_recv · hexlit_send · hexlit_shl_bytea · hexlit_shl_float8 · hexlit_shl_hexlit · hexlit_shl_int2 · hexlit_shl_int4 · hexlit_shl_int8 · hexlit_shl_numeric · hexlit_shl_text · hexlit_shl_varbit · hexlit_shr_bytea · hexlit_shr_float8 · hexlit_shr_hexlit · hexlit_shr_int2 · hexlit_shr_int4 · hexlit_shr_int8 · hexlit_shr_numeric · hexlit_shr_text · hexlit_shr_varbit · hexlit_text · hexlit_um · hexlit_varbit · hexlit_varchar · hexlit_xor_bytea · hexlit_xor_float8 · hexlit_xor_hexlit · hexlit_xor_int2 · hexlit_xor_int4 · hexlit_xor_int8 · hexlit_xor_numeric · hexlit_xor_text · hexlit_xor_varbit · hour
I
if · ifnull · index_key_name · index_key_parts · insert · instr · int2_and_bool · int2_and_hexlit · int2_and_int2 · int2_and_int4 · int2_and_int8 · int2_div_hexlit · int2_eq_hexlit · int2_eq_varbit · int2_ge_hexlit · int2_gt_hexlit · int2_le_hexlit · int2_lt_hexlit · int2_mi_hexlit · int2_mod_hexlit · int2_mul_hexlit · int2_ne_hexlit · int2_nseq_hexlit · int2_or_bool · int2_or_hexlit · int2_or_int2 · int2_or_int4 · int2_or_int8 · int2_pl_hexlit · int2_shl_hexlit · int2_shr_hexlit · int2_xor_hexlit · int2andint4 · int2andint8 · int2andnumeric · int2eqbool · int2leftmoveint2 · int2leftmoveint4 · int2leftmoveint8 · int2nebool · int2orint4 · int2orint8 · int2ornumeric · int2rightmoveint2 · int2rightmoveint4 · int2rightmoveint8 · int4_and_bool · int4_and_hexlit · int4_and_int2 · int4_and_int4 · int4_and_int8 · int4_div_hexlit · int4_eq_hexlit · int4_eq_varbit · int4_ge_hexlit · int4_gt_hexlit · int4_le_hexlit · int4_lt_hexlit · int4_mi_hexlit · int4_mod_hexlit · int4_mul_hexlit · int4_ne_hexlit · int4_nseq_hexlit · int4_or_bool · int4_or_hexlit · int4_or_int2 · int4_or_int4 · int4_or_int8 · int4_pl_hexlit · int4_shl_hexlit · int4_shr_hexlit · int4_xor_hexlit · int4andint2 · int4andint8 · int4andnumeric · int4andtext · int4eqbool · int4leftmoveint2 · int4leftmoveint4 · int4leftmoveint8 · int4nebool · int4orint2 · int4orint8 · int4ornumeric · int4rightmoveint2 · int4rightmoveint4 · int4rightmoveint8 · int8_and_bool · int8_and_hexlit · int8_and_int2 · int8_and_int4 · int8_div_hexlit · int8_eq_hexlit · int8_eq_varbit · int8_ge_hexlit · int8_gt_hexlit · int8_le_hexlit · int8_lt_hexlit · int8_mi_hexlit · int8_mod_hexlit · int8_mul_hexlit · int8_ne_hexlit · int8_nseq_hexlit · int8_or_bool · int8_or_hexlit · int8_or_int2 · int8_or_int4 · int8_pl_hexlit · int8_shl_hexlit · int8_shr_hexlit · int8_xor_hexlit · int8andint2 · int8andint4 · int8andnumeric · int8eqbool · int8leftmoveint2 · int8leftmoveint4 · int8leftmoveint8 · int8nebool · int8orint2 · int8orint4 · int8ornumeric · int8rightmoveint2 · int8rightmoveint4 · int8rightmoveint8 · int_div · integerbgeqtext · integerbgtext · integerleeqtext · integerletext · interval · interval_pl_text · is_and_eq · is_free_lock · is_numeric · is_used_lock · is_valid_binary · is_valid_hex · isnull
J
json_object_field · json_unquote
L
last_day · last_insert_id · lcase · left · length · lenient_float8 · lenient_int · lenient_numeric · lenient_varchar · load_file · locate · log · log2 · lower · lpad · ltrim
M
make_set · makedate · maketime · microsecond · mid · minute · mod · mod_int2_int2 · mod_int2_int4 · mod_int2_int8 · mod_int4_int2 · mod_int4_int4 · mod_int4_int8 · mod_int8_int2 · mod_int8_int4 · mod_int8_int8 · month · monthname · mys_div_float8 · mys_div_int8 · mys_div_numeric · mys_mod_int8 · mys_mod_numeric · mys_uint64_bitnot · mys_uint64_bitop
N
now · numeric_and_hexlit · numeric_div_hexlit · numeric_eq_hexlit · numeric_ge_hexlit · numeric_gt_hexlit · numeric_le_hexlit · numeric_lt_hexlit · numeric_mi_hexlit · numeric_mod_hexlit · numeric_mul_hexlit · numeric_ne_hexlit · numeric_nseq_hexlit · numeric_or_hexlit · numeric_pl_hexlit · numeric_shl_hexlit · numeric_shr_hexlit · numeric_timestamp · numeric_xor_hexlit · numericandint2 · numericandint4 · numericandint8 · numericbgeqtext · numericbgtext · numericeqtext · numericleeqtext · numericletext · numericnetext · numericorint2 · numericorint4 · numericorint8
O
octet_length · on_update_current_timestamp
P
part_list_columns · pending_fk_definitions · pending_fk_guard · period_add · period_diff · prefix_1042_cmp · prefix_17_cmp · prefix_25_cmp · prefix_53875699983efc79eeb9e023e66605f5_cmp · prefix_b8aba7e65857eaf6a91ca737fb14b87b_cmp · prefix_handler · prefix_like · prefix_not_like · prefix_options
Q
R
rand · raw_bytes · register_prefix_binary · register_prefix_type · regular_expr · regular_expr_not · release_all_locks · release_lock · replace · right · round · row_count · rpad · rtrim
S
schema · sec_to_time · second · session_user · set_system_charset_variable · set_system_global_variable · set_system_names_variable · set_system_session_variable · set_system_variable · set_user_var · set_user_var_in_expr · setval · show_create_function · show_create_procedure · show_create_table · show_create_table_impl · show_create_trigger · show_create_view · show_create_view_impl · show_diagnostics · show_system_variable · show_table_columns · show_table_full_columns · show_table_indexs · show_table_indexs_for_8 · sleep · smallintbgeqtext · smallintbgtext · smallintleeqtext · smallintletext · space · sqrt · str_to_date · str_to_double · strcmp · string_result · subdate · substr · substring · substring_index · subtime · sum_bool · sum_text · sum_text_final · sysdate
T
text_add_bigint · text_add_text · text_and_hexlit · text_and_text · text_avg_accum · text_div_hexlit · text_divide_bigint · text_divide_text · text_eq_date · text_eq_hexlit · text_eq_time · text_eq_timestamp · text_eq_timestamptz · text_ge_date · text_ge_hexlit · text_ge_time · text_ge_timestamp · text_ge_timestamptz · text_gt_date · text_gt_hexlit · text_gt_time · text_gt_timestamp · text_gt_timestamptz · text_instr · text_le_date · text_le_hexlit · text_le_time · text_le_timestamp · text_le_timestamptz · text_like_bigint · text_like_hexlit · text_locate2 · text_locate3 · text_lt_date · text_lt_hexlit · text_lt_time · text_lt_timestamp · text_lt_timestamptz · text_mi_hexlit · text_mi_interval · text_minus_bigint · text_minus_text · text_mod_bigint · text_mod_hexlit · text_mod_text · text_mul_hexlit · text_multi_bigint · text_multi_text · text_ne_date · text_ne_hexlit · text_ne_time · text_ne_timestamp · text_ne_timestamptz · text_nlike_hexlit · text_not_like_bigint · text_nseq_hexlit · text_or_anycompatiblenonarray · text_or_anynoarray · text_or_hexlit · text_or_text · text_pl_hexlit · text_pl_interval · text_shl_hexlit · text_shr_hexlit · text_xor_hexlit · textbgbigint · textbgeqbigint · textbgeqinteger · textbgeqnumeric · textbgeqsmallint · textbginteger · textbgnumeric · textbgsmallint · texteq · texteqdate · texteqnumeric · texteqtime · texteqtimestamp · textlebigint · textleeqbigint · textleeqinteger · textleeqnumeric · textleeqsmallint · textleinteger · textlenumeric · textlesmallint · textne · textnedate · textnenumeric · textnetime · textnetimestamp · time_add_bigint · time_eq_text · time_format · time_ge_text · time_gt_text · time_le_text · time_lt_text · time_minus_bigint · time_ne_text · time_to_sec · time_to_timestamp · timediff · timeeqtext · timenetext · timestamp · timestamp_add_bigint · timestamp_eq_text · timestamp_ge_text · timestamp_gt_text · timestamp_le_text · timestamp_lt_text · timestamp_minus_bigint · timestamp_ne_text · timestampadd · timestampdiff · timestampeqtext · timestampnetext · timestamptz_eq_text · timestamptz_ge_text · timestamptz_gt_text · timestamptz_le_text · timestamptz_lt_text · timestamptz_ne_text · to_days · truncate
U
ucase · unhex · unix_timestamp · upper · user · utc_date · utc_time · utc_timestamp · uuid · uuid_short
V
varbinary_n · varbinary_n_bpchar · varbinary_n_cmp · varbinary_n_cmp_binary_n · varbinary_n_cmp_bytea · varbinary_n_eq · varbinary_n_ge · varbinary_n_gt · varbinary_n_hash · varbinary_n_hash_extended · varbinary_n_in · varbinary_n_le · varbinary_n_lt · varbinary_n_ne · varbinary_n_out · varbinary_n_recv · varbinary_n_send · varbinary_n_text · varbinary_n_typmodin · varbinary_n_typmodout · varbinary_n_varchar · varbit_and_hexlit · varbit_div_hexlit · varbit_eq_boolean · varbit_eq_hexlit · varbit_eq_int2 · varbit_eq_int4 · varbit_eq_int8 · varbit_ge_hexlit · varbit_gt_hexlit · varbit_le_hexlit · varbit_lt_hexlit · varbit_mi_hexlit · varbit_mod_hexlit · varbit_mul_hexlit · varbit_ne_hexlit · varbit_nseq_hexlit · varbit_numeric · varbit_or_hexlit · varbit_pl_hexlit · varbit_shl_hexlit · varbit_shr_hexlit · varbit_xor_hexlit · varchar_add_bigint · varchar_add_varchar · varchar_divide_bigint · varchar_divide_varchar · varchar_minus_bigint · varchar_minus_varchar · varchar_mod_bigint · varchar_mod_varchar · varchar_multi_bigint · varchar_multi_varchar · version
W
week · weekday · weekofyear
Y
1 - String and binary functions
Use the return type to distinguish text and byte-string overloads.
ascii
| Signature | Purpose | Source definition |
|---|---|---|
mysql.ascii(bytea) → integer | Read the numeric value of the first byte. | Generated definition · C |
mysql.ascii(mysql.binary_n) → integer | Read the numeric value of the first byte. | Generated definition · C |
mysql.ascii(mysql.hexlit) → integer | Read the numeric value of the first byte. | Generated definition · C |
mysql.ascii(mysql.varbinary_n) → integer | Read the numeric value of the first byte. | Generated definition · C |
bin
| Signature | Purpose | Source definition |
|---|---|---|
mysql.bin(bigint) → text | Represent an integer in base two. | SQL |
btrim
| Signature | Purpose | Source definition |
|---|---|---|
mysql.btrim(bytea) → bytea | Trim both ends of the byte string. | Generated definition · C |
mysql.btrim(bytea, "any") → bytea | Trim both ends of the byte string. | Generated definition · C |
mysql.btrim(mysql.binary_n) → bytea | Trim both ends of the byte string. | Generated definition · C |
mysql.btrim(mysql.binary_n, "any") → bytea | Trim both ends of the byte string. | Generated definition · C |
mysql.btrim(mysql.hexlit) → bytea | Trim both ends of the byte string. | Generated definition · C |
mysql.btrim(mysql.hexlit, "any") → bytea | Trim both ends of the byte string. | Generated definition · C |
mysql.btrim(mysql.varbinary_n) → bytea | Trim both ends of the byte string. | Generated definition · C |
mysql.btrim(mysql.varbinary_n, "any") → bytea | Trim both ends of the byte string. | Generated definition · C |
char_length
| Signature | Purpose | Source definition |
|---|---|---|
mysql.char_length(bytea) → integer | Count characters in text or bytes in a binary string. | Generated definition |
mysql.char_length(mysql.binary_n) → integer | Count characters in text or bytes in a binary string. | Generated definition |
mysql.char_length(mysql.hexlit) → integer | Count characters in text or bytes in a binary string. | Generated definition |
mysql.char_length(mysql.varbinary_n) → integer | Count characters in text or bytes in a binary string. | Generated definition |
character_length
| Signature | Purpose | Source definition |
|---|---|---|
mysql.character_length(bytea) → integer | Count characters in text or bytes in a binary string. | Generated definition |
mysql.character_length(mysql.binary_n) → integer | Count characters in text or bytes in a binary string. | Generated definition |
mysql.character_length(mysql.hexlit) → integer | Count characters in text or bytes in a binary string. | Generated definition |
mysql.character_length(mysql.varbinary_n) → integer | Count characters in text or bytes in a binary string. | Generated definition |
concat
| Signature | Purpose | Source definition |
|---|---|---|
mysql.concat(VARIADIC "any") → text | Concatenate the arguments in order. | SQL · C |
concat_ws
| Signature | Purpose | Source definition |
|---|---|---|
mysql.concat_ws(text, VARIADIC "any") → text | Join values with the supplied separator. | SQL · C |
elt
| Signature | Purpose | Source definition |
|---|---|---|
mysql.elt(VARIADIC "any") → text | Pick the string at the given one-based position. | SQL · C |
export_set
| Signature | Purpose | Source definition |
|---|---|---|
mysql.export_set(bigint, text, text, text, bigint) → text | Render set and unset bits using the supplied strings. | SQL |
field
find_in_set
| Signature | Purpose | Source definition |
|---|---|---|
mysql.find_in_set(bigint, text) → integer | Find a value in a comma-separated list. | SQL |
mysql.find_in_set(text, text) → integer | Find a value in a comma-separated list. | SQL |
format
| Signature | Purpose | Source definition |
|---|---|---|
mysql.format(numeric, bigint) → text | Format a number with the requested decimal places. | SQL |
hex
| Signature | Purpose | Source definition |
|---|---|---|
mysql.hex(bigint) → text | Encode the value in hexadecimal. | SQL · C |
mysql.hex(bit varying) → text | Encode the value in hexadecimal. | SQL · C |
mysql.hex(boolean) → text | Encode the value in hexadecimal. | SQL |
mysql.hex(bytea) → text | Encode the value in hexadecimal. | SQL · C |
mysql.hex(character) → text | Encode the value in hexadecimal. | SQL · C |
mysql.hex(double precision) → text | Encode the value in hexadecimal. | SQL · C |
mysql.hex(integer) → text | Encode the value in hexadecimal. | SQL |
mysql.hex(mysql.binary_n) → text | Encode the value in hexadecimal. | Generated definition · C |
mysql.hex(mysql.hexlit) → text | Encode the value in hexadecimal. | Generated definition · C |
mysql.hex(mysql.varbinary_n) → text | Encode the value in hexadecimal. | Generated definition · C |
mysql.hex(numeric) → text | Encode the value in hexadecimal. | SQL · C |
mysql.hex(smallint) → text | Encode the value in hexadecimal. | SQL |
mysql.hex(text) → text | Encode the value in hexadecimal. | SQL · C |
insert
| Signature | Purpose | Source definition |
|---|---|---|
mysql.insert(text, integer, integer, text) → text | Replace part of a string at a specified position. | SQL |
instr
json_unquote
| Signature | Purpose | Source definition |
|---|---|---|
mysql.json_unquote(json) → text | Remove JSON string quoting. | SQL |
lcase
| Signature | Purpose | Source definition |
|---|---|---|
mysql.lcase(bigint) → text | Convert text to lowercase. Binary strings retain their bytes. | SQL |
mysql.lcase(bytea) → bytea | Convert text to lowercase. Binary strings retain their bytes. | Generated definition · C |
mysql.lcase(date) → text | Convert text to lowercase. Binary strings retain their bytes. | SQL |
mysql.lcase(integer) → text | Convert text to lowercase. Binary strings retain their bytes. | SQL |
mysql.lcase(mysql."smallint") → text | Convert text to lowercase. Binary strings retain their bytes. | SQL |
mysql.lcase(mysql.binary_n) → bytea | Convert text to lowercase. Binary strings retain their bytes. | Generated definition · C |
mysql.lcase(mysql.hexlit) → bytea | Convert text to lowercase. Binary strings retain their bytes. | Generated definition · C |
mysql.lcase(mysql.varbinary_n) → bytea | Convert text to lowercase. Binary strings retain their bytes. | Generated definition · C |
mysql.lcase(numeric) → text | Convert text to lowercase. Binary strings retain their bytes. | SQL |
mysql.lcase(text) → text | Convert text to lowercase. Binary strings retain their bytes. | SQL |
mysql.lcase(time without time zone) → text | Convert text to lowercase. Binary strings retain their bytes. | SQL |
mysql.lcase(timestamp with time zone) → text | Convert text to lowercase. Binary strings retain their bytes. | SQL |
mysql.lcase(timestamp without time zone) → text | Convert text to lowercase. Binary strings retain their bytes. | SQL |
left
length
| Signature | Purpose | Source definition |
|---|---|---|
mysql.length(bytea) → integer | Count the bytes in the value’s string representation. | Generated definition |
mysql.length(mysql.binary_n) → integer | Count the bytes in the value’s string representation. | Generated definition |
mysql.length(mysql.hexlit) → integer | Count the bytes in the value’s string representation. | Generated definition |
mysql.length(mysql.varbinary_n) → integer | Count the bytes in the value’s string representation. | Generated definition |
mysql.length(num bigint) → integer | Count the bytes in the value’s string representation. | SQL |
mysql.length(num character) → integer | Count the bytes in the value’s string representation. | SQL |
mysql.length(num integer) → integer | Count the bytes in the value’s string representation. | SQL |
mysql.length(num mysql."smallint") → integer | Count the bytes in the value’s string representation. | SQL |
mysql.length(num numeric) → integer | Count the bytes in the value’s string representation. | SQL |
mysql.length(text) → integer | Count the bytes in the value’s string representation. | SQL |
load_file
| Signature | Purpose | Source definition |
|---|---|---|
mysql.load_file(text) → text | Read a server-side file. EXECUTE is restricted. | SQL |
locate
| Signature | Purpose | Source definition |
|---|---|---|
mysql.locate(bytea, bytea) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(bytea, bytea, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(bytea, mysql.binary_n) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(bytea, mysql.binary_n, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(bytea, mysql.hexlit) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(bytea, mysql.hexlit, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(bytea, mysql.varbinary_n) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(bytea, mysql.varbinary_n, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(bytea, text) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(bytea, text, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(mysql.binary_n, bytea) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(mysql.binary_n, bytea, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(mysql.binary_n, mysql.binary_n) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(mysql.binary_n, mysql.binary_n, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(mysql.binary_n, mysql.hexlit) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(mysql.binary_n, mysql.hexlit, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(mysql.binary_n, mysql.varbinary_n) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(mysql.binary_n, mysql.varbinary_n, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(mysql.binary_n, text) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(mysql.binary_n, text, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(mysql.hexlit, bytea) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(mysql.hexlit, bytea, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(mysql.hexlit, mysql.binary_n) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(mysql.hexlit, mysql.binary_n, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(mysql.hexlit, mysql.hexlit) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(mysql.hexlit, mysql.hexlit, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(mysql.hexlit, mysql.varbinary_n) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(mysql.hexlit, mysql.varbinary_n, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(mysql.hexlit, text) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(mysql.hexlit, text, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(mysql.varbinary_n, bytea) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(mysql.varbinary_n, bytea, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(mysql.varbinary_n, mysql.binary_n) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(mysql.varbinary_n, mysql.binary_n, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(mysql.varbinary_n, mysql.hexlit) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(mysql.varbinary_n, mysql.hexlit, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(mysql.varbinary_n, mysql.varbinary_n) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(mysql.varbinary_n, mysql.varbinary_n, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(mysql.varbinary_n, text) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(mysql.varbinary_n, text, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(numeric, numeric) → integer | Find the first occurrence of a substring, optionally from a given position. | SQL |
mysql.locate(numeric, numeric, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | SQL |
mysql.locate(numeric, text) → integer | Find the first occurrence of a substring, optionally from a given position. | SQL |
mysql.locate(numeric, text, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | SQL |
mysql.locate(numeric, time without time zone) → integer | Find the first occurrence of a substring, optionally from a given position. | SQL |
mysql.locate(numeric, time without time zone, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | SQL |
mysql.locate(numeric, timestamp with time zone) → integer | Find the first occurrence of a substring, optionally from a given position. | SQL |
mysql.locate(numeric, timestamp with time zone, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | SQL |
mysql.locate(numeric, timestamp without time zone) → integer | Find the first occurrence of a substring, optionally from a given position. | SQL |
mysql.locate(numeric, timestamp without time zone, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | SQL |
mysql.locate(text, bytea) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(text, bytea, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(text, mysql.binary_n) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(text, mysql.binary_n, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(text, mysql.hexlit) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(text, mysql.hexlit, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(text, mysql.varbinary_n) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(text, mysql.varbinary_n, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | Generated definition · C |
mysql.locate(text, numeric) → integer | Find the first occurrence of a substring, optionally from a given position. | SQL |
mysql.locate(text, numeric, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | SQL |
mysql.locate(text, text) → integer | Find the first occurrence of a substring, optionally from a given position. | SQL |
mysql.locate(text, text, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | SQL |
mysql.locate(text, time without time zone) → integer | Find the first occurrence of a substring, optionally from a given position. | SQL |
mysql.locate(text, time without time zone, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | SQL |
mysql.locate(text, timestamp with time zone) → integer | Find the first occurrence of a substring, optionally from a given position. | SQL |
mysql.locate(text, timestamp with time zone, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | SQL |
mysql.locate(text, timestamp without time zone) → integer | Find the first occurrence of a substring, optionally from a given position. | SQL |
mysql.locate(text, timestamp without time zone, integer) → integer | Find the first occurrence of a substring, optionally from a given position. | SQL |
lower
| Signature | Purpose | Source definition |
|---|---|---|
mysql.lower(bytea) → bytea | Convert text to lowercase. Binary strings retain their bytes. | Generated definition · C |
mysql.lower(mysql.binary_n) → bytea | Convert text to lowercase. Binary strings retain their bytes. | Generated definition · C |
mysql.lower(mysql.hexlit) → bytea | Convert text to lowercase. Binary strings retain their bytes. | Generated definition · C |
mysql.lower(mysql.varbinary_n) → bytea | Convert text to lowercase. Binary strings retain their bytes. | Generated definition · C |
lpad
| Signature | Purpose | Source definition |
|---|---|---|
mysql.lpad(bigint, integer, text) → text | Pad on the left to the requested length. | SQL |
mysql.lpad(text, integer, text) → text | Pad on the left to the requested length. | SQL |
ltrim
| Signature | Purpose | Source definition |
|---|---|---|
mysql.ltrim(bytea) → bytea | Trim the beginning of a byte string. | Generated definition · C |
mysql.ltrim(bytea, "any") → bytea | Trim the beginning of a byte string. | Generated definition · C |
mysql.ltrim(mysql.binary_n) → bytea | Trim the beginning of a byte string. | Generated definition · C |
mysql.ltrim(mysql.binary_n, "any") → bytea | Trim the beginning of a byte string. | Generated definition · C |
mysql.ltrim(mysql.hexlit) → bytea | Trim the beginning of a byte string. | Generated definition · C |
mysql.ltrim(mysql.hexlit, "any") → bytea | Trim the beginning of a byte string. | Generated definition · C |
mysql.ltrim(mysql.varbinary_n) → bytea | Trim the beginning of a byte string. | Generated definition · C |
mysql.ltrim(mysql.varbinary_n, "any") → bytea | Trim the beginning of a byte string. | Generated definition · C |
make_set
| Signature | Purpose | Source definition |
|---|---|---|
mysql.make_set(bigint, VARIADIC text[]) → text | Select strings using the set bits of a mask. | SQL |
mid
| Signature | Purpose | Source definition |
|---|---|---|
mysql.mid(bigint, integer) → text | Extract a slice starting at the given position. | SQL |
mysql.mid(bigint, integer, integer) → text | Extract a slice starting at the given position. | SQL |
mysql.mid(date, integer) → text | Extract a slice starting at the given position. | SQL |
mysql.mid(date, integer, integer) → text | Extract a slice starting at the given position. | SQL |
mysql.mid(integer, integer) → text | Extract a slice starting at the given position. | SQL |
mysql.mid(integer, integer, integer) → text | Extract a slice starting at the given position. | SQL |
mysql.mid(mysql."smallint", integer) → text | Extract a slice starting at the given position. | SQL |
mysql.mid(mysql."smallint", integer, integer) → text | Extract a slice starting at the given position. | SQL |
mysql.mid(str text, pos integer, len integer) → text | Extract a slice starting at the given position. | SQL |
mysql.mid(text, integer) → text | Extract a slice starting at the given position. | SQL |
mysql.mid(time without time zone, integer) → text | Extract a slice starting at the given position. | SQL |
mysql.mid(time without time zone, integer, integer) → text | Extract a slice starting at the given position. | SQL |
mysql.mid(timestamp with time zone, integer) → text | Extract a slice starting at the given position. | SQL |
mysql.mid(timestamp with time zone, integer, integer) → text | Extract a slice starting at the given position. | SQL |
mysql.mid(timestamp without time zone, integer) → text | Extract a slice starting at the given position. | SQL |
mysql.mid(timestamp without time zone, integer, integer) → text | Extract a slice starting at the given position. | SQL |
octet_length
| Signature | Purpose | Source definition |
|---|---|---|
mysql.octet_length(bytea) → integer | Count the bytes in the value’s string representation. | Generated definition |
mysql.octet_length(mysql.binary_n) → integer | Count the bytes in the value’s string representation. | Generated definition |
mysql.octet_length(mysql.hexlit) → integer | Count the bytes in the value’s string representation. | Generated definition |
mysql.octet_length(mysql.varbinary_n) → integer | Count the bytes in the value’s string representation. | Generated definition |
replace
| Signature | Purpose | Source definition |
|---|---|---|
mysql.replace(bytea, "any", "any") → bytea | Replace occurrences of a search string. | Generated definition · C |
mysql.replace(mysql.binary_n, "any", "any") → bytea | Replace occurrences of a search string. | Generated definition · C |
mysql.replace(mysql.hexlit, "any", "any") → bytea | Replace occurrences of a search string. | Generated definition · C |
mysql.replace(mysql.varbinary_n, "any", "any") → bytea | Replace occurrences of a search string. | Generated definition · C |
mysql.replace(text, text, text) → text | Replace occurrences of a search string. | SQL · C |
right
rpad
| Signature | Purpose | Source definition |
|---|---|---|
mysql.rpad(bigint, integer, text) → text | Pad on the right to the requested length. | SQL |
mysql.rpad(text, integer, text) → text | Pad on the right to the requested length. | SQL |
rtrim
| Signature | Purpose | Source definition |
|---|---|---|
mysql.rtrim(bytea) → bytea | Trim the end of a byte string. | Generated definition · C |
mysql.rtrim(bytea, "any") → bytea | Trim the end of a byte string. | Generated definition · C |
mysql.rtrim(mysql.binary_n) → bytea | Trim the end of a byte string. | Generated definition · C |
mysql.rtrim(mysql.binary_n, "any") → bytea | Trim the end of a byte string. | Generated definition · C |
mysql.rtrim(mysql.hexlit) → bytea | Trim the end of a byte string. | Generated definition · C |
mysql.rtrim(mysql.hexlit, "any") → bytea | Trim the end of a byte string. | Generated definition · C |
mysql.rtrim(mysql.varbinary_n) → bytea | Trim the end of a byte string. | Generated definition · C |
mysql.rtrim(mysql.varbinary_n, "any") → bytea | Trim the end of a byte string. | Generated definition · C |
space
| Signature | Purpose | Source definition |
|---|---|---|
mysql.space(integer) → text | Produce a string of spaces. | SQL |
strcmp
| Signature | Purpose | Source definition |
|---|---|---|
mysql.strcmp(text, text) → integer | Compare two strings and return their ordering. | SQL |
substr
substring
substring_index
| Signature | Purpose | Source definition |
|---|---|---|
mysql.substring_index(text, text, integer) → text | Split at a delimiter and take the requested part. | SQL · C |
ucase
| Signature | Purpose | Source definition |
|---|---|---|
mysql.ucase(bigint) → text | Convert text to uppercase. Binary strings retain their bytes. | SQL |
mysql.ucase(bytea) → bytea | Convert text to uppercase. Binary strings retain their bytes. | Generated definition · C |
mysql.ucase(date) → text | Convert text to uppercase. Binary strings retain their bytes. | SQL |
mysql.ucase(integer) → text | Convert text to uppercase. Binary strings retain their bytes. | SQL |
mysql.ucase(mysql."smallint") → text | Convert text to uppercase. Binary strings retain their bytes. | SQL |
mysql.ucase(mysql.binary_n) → bytea | Convert text to uppercase. Binary strings retain their bytes. | Generated definition · C |
mysql.ucase(mysql.hexlit) → bytea | Convert text to uppercase. Binary strings retain their bytes. | Generated definition · C |
mysql.ucase(mysql.varbinary_n) → bytea | Convert text to uppercase. Binary strings retain their bytes. | Generated definition · C |
mysql.ucase(numeric) → text | Convert text to uppercase. Binary strings retain their bytes. | SQL |
mysql.ucase(text) → text | Convert text to uppercase. Binary strings retain their bytes. | SQL |
mysql.ucase(time without time zone) → text | Convert text to uppercase. Binary strings retain their bytes. | SQL |
mysql.ucase(timestamp with time zone) → text | Convert text to uppercase. Binary strings retain their bytes. | SQL |
mysql.ucase(timestamp without time zone) → text | Convert text to uppercase. Binary strings retain their bytes. | SQL |
unhex
| Signature | Purpose | Source definition |
|---|---|---|
mysql.unhex(bigint) → bytea | Decode hexadecimal digits into bytes. | SQL |
mysql.unhex(bytea) → bytea | Decode hexadecimal digits into bytes. | SQL · C |
mysql.unhex(text) → bytea | Decode hexadecimal digits into bytes. | SQL · C |
upper
| Signature | Purpose | Source definition |
|---|---|---|
mysql.upper(bytea) → bytea | Convert text to uppercase. Binary strings retain their bytes. | Generated definition · C |
mysql.upper(mysql.binary_n) → bytea | Convert text to uppercase. Binary strings retain their bytes. | Generated definition · C |
mysql.upper(mysql.hexlit) → bytea | Convert text to uppercase. Binary strings retain their bytes. | Generated definition · C |
mysql.upper(mysql.varbinary_n) → bytea | Convert text to uppercase. Binary strings retain their bytes. | Generated definition · C |
2 - Numeric functions
Rounding, division, base conversion and numeric calculations.
bit_count
| Signature | Purpose | Source definition |
|---|---|---|
mysql.bit_count(bigint) → integer | Count the set bits. | SQL |
mysql.bit_count(bytea) → integer | Count the set bits. | SQL |
mysql.bit_count(text) → integer | Count the set bits. | SQL |
ceil
| Signature | Purpose | Source definition |
|---|---|---|
mysql.ceil(text) → bigint | Round up to an integer. | SQL |
ceiling
| Signature | Purpose | Source definition |
|---|---|---|
mysql.ceiling(text) → bigint | Round up to an integer. | SQL |
conv
| Signature | Purpose | Source definition |
|---|---|---|
mysql.conv(bigint, integer, integer) → text | Convert a number between bases. | SQL |
mysql.conv(text, integer, integer) → text | Convert a number between bases. | SQL |
floor
| Signature | Purpose | Source definition |
|---|---|---|
mysql.floor(text) → bigint | Round down to an integer. | SQL |
int_div
| Signature | Purpose | Source definition |
|---|---|---|
mysql.int_div(mysql.hexlit, mysql.hexlit) → bigint | Compute the integer quotient for MySQL DIV. | SQL |
mysql.int_div(mysql.hexlit, numeric) → bigint | Compute the integer quotient for MySQL DIV. | SQL |
mysql.int_div(numeric, mysql.hexlit) → bigint | Compute the integer quotient for MySQL DIV. | SQL |
mysql.int_div(numeric, numeric) → bigint | Compute the integer quotient for MySQL DIV. | SQL |
log
| Signature | Purpose | Source definition |
|---|---|---|
mysql.log(bigint) → numeric | Compute a logarithm. | SQL |
mysql.log(integer) → numeric | Compute a logarithm. | SQL |
mysql.log(numeric) → numeric | Compute a logarithm. | SQL |
mysql.log(smallint) → numeric | Compute a logarithm. | SQL |
log2
| Signature | Purpose | Source definition |
|---|---|---|
mysql.log2(double precision) → numeric | Compute the base-two logarithm. | SQL |
mysql.log2(numeric) → numeric | Compute the base-two logarithm. | SQL |
mod
| Signature | Purpose | Source definition |
|---|---|---|
mysql.mod(bigint, bigint) → bigint | Return the remainder of division. | SQL |
mysql.mod(bigint, text) → numeric | Return the remainder of division. | SQL |
mysql.mod(integer, integer) → integer | Return the remainder of division. | SQL |
mysql.mod(integer, text) → numeric | Return the remainder of division. | SQL |
mysql.mod(mysql."smallint", mysql."smallint") → mysql."smallint" | Return the remainder of division. | SQL |
mysql.mod(mysql."smallint", text) → numeric | Return the remainder of division. | SQL |
mysql.mod(numeric, numeric) → numeric | Return the remainder of division. | SQL |
mysql.mod(numeric, text) → numeric | Return the remainder of division. | SQL |
mysql.mod(text, bigint) → numeric | Return the remainder of division. | SQL |
mysql.mod(text, integer) → numeric | Return the remainder of division. | SQL |
mysql.mod(text, mysql."smallint") → numeric | Return the remainder of division. | SQL |
mysql.mod(text, numeric) → numeric | Return the remainder of division. | SQL |
mysql.mod(text, text) → numeric | Return the remainder of division. | SQL |
rand
| Signature | Purpose | Source definition |
|---|---|---|
mysql.rand() → numeric | Generate a pseudorandom number. | SQL |
mysql.rand(bigint) → numeric | Generate a pseudorandom number. | SQL |
mysql.rand(integer) → numeric | Generate a pseudorandom number. | SQL |
round
| Signature | Purpose | Source definition |
|---|---|---|
mysql.round(integer) → integer | Round to the requested precision. | SQL |
mysql.round(integer, integer) → integer | Round to the requested precision. | SQL |
mysql.round(numeric) → integer | Round to the requested precision. | SQL |
mysql.round(numeric, integer) → numeric | Round to the requested precision. | SQL |
mysql.round(text) → numeric | Round to the requested precision. | SQL |
mysql.round(text, integer) → numeric | Round to the requested precision. | SQL |
sqrt
| Signature | Purpose | Source definition |
|---|---|---|
mysql.sqrt(bigint) → numeric | Compute the square root. | SQL |
mysql.sqrt(integer) → numeric | Compute the square root. | SQL |
mysql.sqrt(numeric) → numeric | Compute the square root. | SQL |
mysql.sqrt(smallint) → numeric | Compute the square root. | SQL |
truncate
| Signature | Purpose | Source definition |
|---|---|---|
mysql.truncate(numeric, integer) → numeric | Truncate a number to the requested decimal place. | SQL |
3 - Date and time functions
Date arithmetic, formatting, parsing, extraction and clock values.
adddate
| Signature | Purpose | Source definition |
|---|---|---|
mysql.adddate(date, integer) → date | Add a day count or interval to a date. | SQL |
mysql.adddate(date, interval) → date | Add a day count or interval to a date. | SQL |
mysql.adddate(numeric, integer) → timestamp without time zone | Add a day count or interval to a date. | SQL |
mysql.adddate(numeric, interval) → timestamp without time zone | Add a day count or interval to a date. | SQL |
mysql.adddate(text, integer) → timestamp without time zone | Add a day count or interval to a date. | SQL |
mysql.adddate(text, interval) → timestamp without time zone | Add a day count or interval to a date. | SQL |
mysql.adddate(timestamp without time zone, integer) → timestamp without time zone | Add a day count or interval to a date. | SQL |
mysql.adddate(timestamp without time zone, interval) → timestamp without time zone | Add a day count or interval to a date. | SQL |
addtime
| Signature | Purpose | Source definition |
|---|---|---|
mysql.addtime(text, double precision) → text | Add time values. | SQL |
mysql.addtime(text, text) → text | Add time values. | SQL · C |
mysql.addtime(text, time without time zone) → text | Add time values. | SQL |
mysql.addtime(time without time zone, double precision) → time without time zone | Add time values. | SQL |
mysql.addtime(time without time zone, text) → time without time zone | Add time values. | SQL |
mysql.addtime(time without time zone, time without time zone) → time without time zone | Add time values. | SQL |
mysql.addtime(timestamp without time zone, double precision) → timestamp without time zone | Add time values. | SQL |
mysql.addtime(timestamp without time zone, text) → timestamp without time zone | Add time values. | SQL · C |
mysql.addtime(timestamp without time zone, time without time zone) → timestamp without time zone | Add time values. | SQL · C |
convert_tz
| Signature | Purpose | Source definition |
|---|---|---|
mysql.convert_tz(text, text, text) → timestamp without time zone | Convert a temporal value between time zones. | SQL |
mysql.convert_tz(timestamp without time zone, text, text) → timestamp without time zone | Convert a temporal value between time zones. | SQL |
curdate
| Signature | Purpose | Source definition |
|---|---|---|
mysql.curdate() → date | Return the current date. | SQL |
curtime
| Signature | Purpose | Source definition |
|---|---|---|
mysql.curtime() → time without time zone | Return the current time of day. | SQL |
mysql.curtime(prec integer) → time without time zone | Return the current time of day. | SQL |
date
| Signature | Purpose | Source definition |
|---|---|---|
mysql.date(numeric) → date | Extract or parse a date. | SQL |
pg_catalog.date(text) → date | Extract or parse a date. | SQL |
date_add
| Signature | Purpose | Source definition |
|---|---|---|
mysql.date_add(date, interval) → date | Add a day count or interval to a date. | SQL |
mysql.date_add(numeric, interval) → timestamp without time zone | Add a day count or interval to a date. | SQL |
mysql.date_add(text, interval) → timestamp without time zone | Add a day count or interval to a date. | SQL |
mysql.date_add(timestamp without time zone, interval) → timestamp without time zone | Add a day count or interval to a date. | SQL |
date_format
| Signature | Purpose | Source definition |
|---|---|---|
mysql.date_format(text, text) → text | Format a date with MySQL percent directives. | SQL |
mysql.date_format(timestamp with time zone, text) → text | Format a date with MySQL percent directives. | SQL |
date_sub
| Signature | Purpose | Source definition |
|---|---|---|
mysql.date_sub(date, interval) → date | Subtract a day count or interval from a date. | SQL |
mysql.date_sub(numeric, interval) → timestamp without time zone | Subtract a day count or interval from a date. | SQL |
mysql.date_sub(text, interval) → timestamp without time zone | Subtract a day count or interval from a date. | SQL |
mysql.date_sub(timestamp without time zone, interval) → timestamp without time zone | Subtract a day count or interval from a date. | SQL |
datediff
| Signature | Purpose | Source definition |
|---|---|---|
mysql.datediff(date, date) → integer | Return the difference between two dates in days. | SQL |
mysql.datediff(numeric, numeric) → integer | Return the difference between two dates in days. | SQL |
mysql.datediff(numeric, text) → integer | Return the difference between two dates in days. | SQL |
mysql.datediff(text, numeric) → integer | Return the difference between two dates in days. | SQL |
mysql.datediff(text, text) → integer | Return the difference between two dates in days. | SQL |
mysql.datediff(text, timestamp without time zone) → integer | Return the difference between two dates in days. | SQL |
mysql.datediff(timestamp without time zone, text) → integer | Return the difference between two dates in days. | SQL |
mysql.datediff(timestamp without time zone, timestamp without time zone) → integer | Return the difference between two dates in days. | SQL |
day
| Signature | Purpose | Source definition |
|---|---|---|
mysql.day(numeric) → integer | Return the day of the month. | SQL |
mysql.day(text) → integer | Return the day of the month. | SQL |
mysql.day(timestamp without time zone) → integer | Return the day of the month. | SQL |
dayname
| Signature | Purpose | Source definition |
|---|---|---|
mysql.dayname(numeric) → text | Return the weekday name. | SQL |
mysql.dayname(text) → text | Return the weekday name. | SQL |
mysql.dayname(timestamp without time zone) → text | Return the weekday name. | SQL |
dayofmonth
| Signature | Purpose | Source definition |
|---|---|---|
mysql.dayofmonth(numeric) → integer | Return the day of the month. | SQL |
mysql.dayofmonth(text) → integer | Return the day of the month. | SQL |
mysql.dayofmonth(timestamp without time zone) → integer | Return the day of the month. | SQL |
dayofweek
| Signature | Purpose | Source definition |
|---|---|---|
mysql.dayofweek(numeric) → integer | Number weekdays starting with Sunday as 1. | SQL |
mysql.dayofweek(text) → integer | Number weekdays starting with Sunday as 1. | SQL |
mysql.dayofweek(timestamp without time zone) → integer | Number weekdays starting with Sunday as 1. | SQL |
dayofyear
| Signature | Purpose | Source definition |
|---|---|---|
mysql.dayofyear(numeric) → integer | Return the ordinal day of the year. | SQL |
mysql.dayofyear(text) → integer | Return the ordinal day of the year. | SQL |
mysql.dayofyear(timestamp without time zone) → integer | Return the ordinal day of the year. | SQL |
extract
| Signature | Purpose | Source definition |
|---|---|---|
mysql."extract"(text, text) → numeric | Extract the requested date or time field. | SQL |
mysql."extract"(text, time without time zone) → numeric | Extract the requested date or time field. | SQL · C |
mysql."extract"(text, timestamp without time zone) → numeric | Extract the requested date or time field. | SQL · C |
from_days
| Signature | Purpose | Source definition |
|---|---|---|
mysql.from_days(integer) → date | Convert a MySQL day number to a date. | SQL |
from_unixtime
| Signature | Purpose | Source definition |
|---|---|---|
mysql.from_unixtime(double precision) → timestamp without time zone | Convert Unix time to a date/time value or formatted string. | SQL |
mysql.from_unixtime(double precision, text) → text | Convert Unix time to a date/time value or formatted string. | SQL |
hour
| Signature | Purpose | Source definition |
|---|---|---|
mysql.hour(text) → integer | Extract the hour. | SQL |
mysql.hour(time without time zone) → integer | Extract the hour. | SQL |
mysql.hour(timestamp without time zone) → integer | Extract the hour. | SQL |
last_day
| Signature | Purpose | Source definition |
|---|---|---|
mysql.last_day(date) → date | Find the last date of the month. | SQL |
mysql.last_day(numeric) → date | Find the last date of the month. | SQL |
mysql.last_day(text) → date | Find the last date of the month. | SQL |
mysql.last_day(timestamp with time zone) → date | Find the last date of the month. | SQL |
mysql.last_day(timestamp without time zone) → date | Find the last date of the month. | SQL |
makedate
| Signature | Purpose | Source definition |
|---|---|---|
mysql.makedate(integer, integer) → date | Build a date from a year and day of year. | SQL |
maketime
| Signature | Purpose | Source definition |
|---|---|---|
mysql.maketime(integer, integer, numeric) → time without time zone | Build a time from hours, minutes and seconds. | SQL |
microsecond
| Signature | Purpose | Source definition |
|---|---|---|
mysql.microsecond(text) → integer | Extract microseconds. | SQL |
mysql.microsecond(time without time zone) → integer | Extract microseconds. | SQL |
mysql.microsecond(timestamp without time zone) → integer | Extract microseconds. | SQL |
minute
| Signature | Purpose | Source definition |
|---|---|---|
mysql.minute(text) → integer | Extract minutes. | SQL |
mysql.minute(time without time zone) → integer | Extract minutes. | SQL |
mysql.minute(timestamp without time zone) → integer | Extract minutes. | SQL |
month
| Signature | Purpose | Source definition |
|---|---|---|
mysql.month(numeric) → integer | Return the month number. | SQL |
mysql.month(text) → integer | Return the month number. | SQL |
mysql.month(timestamp without time zone) → integer | Return the month number. | SQL |
monthname
| Signature | Purpose | Source definition |
|---|---|---|
mysql.monthname(numeric) → text | Return the month name. | SQL |
mysql.monthname(text) → text | Return the month name. | SQL |
mysql.monthname(timestamp without time zone) → text | Return the month name. | SQL |
now
| Signature | Purpose | Source definition |
|---|---|---|
mysql.now() → timestamp without time zone | Return the transaction’s current timestamp. | SQL |
mysql.now(prec integer) → timestamp without time zone | Return the transaction’s current timestamp. | SQL |
period_add
| Signature | Purpose | Source definition |
|---|---|---|
mysql.period_add(integer, integer) → text | Add months to a year-month period. | SQL |
period_diff
| Signature | Purpose | Source definition |
|---|---|---|
mysql.period_diff(integer, integer) → integer | Find the difference between year-month periods in months. | SQL |
quarter
| Signature | Purpose | Source definition |
|---|---|---|
mysql.quarter(date) → integer | Return the quarter of the year. | SQL |
mysql.quarter(numeric) → integer | Return the quarter of the year. | SQL |
mysql.quarter(text) → integer | Return the quarter of the year. | SQL |
mysql.quarter(timestamp without time zone) → integer | Return the quarter of the year. | SQL |
sec_to_time
| Signature | Purpose | Source definition |
|---|---|---|
mysql.sec_to_time(bigint) → time without time zone | Convert seconds to a time value. | SQL |
second
| Signature | Purpose | Source definition |
|---|---|---|
mysql.second(text) → integer | Extract seconds. | SQL |
mysql.second(time without time zone) → integer | Extract seconds. | SQL |
mysql.second(timestamp without time zone) → integer | Extract seconds. | SQL |
str_to_date
| Signature | Purpose | Source definition |
|---|---|---|
mysql.str_to_date(text, text) → timestamp without time zone | Parse a date or time with a MySQL format string. | SQL |
subdate
| Signature | Purpose | Source definition |
|---|---|---|
mysql.subdate(date, integer) → date | Subtract a day count or interval from a date. | SQL |
mysql.subdate(date, interval) → timestamp without time zone | Subtract a day count or interval from a date. | SQL |
mysql.subdate(numeric, integer) → timestamp without time zone | Subtract a day count or interval from a date. | SQL |
mysql.subdate(numeric, interval) → timestamp without time zone | Subtract a day count or interval from a date. | SQL |
mysql.subdate(text, integer) → timestamp without time zone | Subtract a day count or interval from a date. | SQL |
mysql.subdate(text, interval) → timestamp without time zone | Subtract a day count or interval from a date. | SQL |
mysql.subdate(timestamp without time zone, integer) → timestamp without time zone | Subtract a day count or interval from a date. | SQL |
mysql.subdate(timestamp without time zone, interval) → timestamp without time zone | Subtract a day count or interval from a date. | SQL |
subtime
sysdate
| Signature | Purpose | Source definition |
|---|---|---|
mysql.sysdate() → timestamp without time zone | Read the wall clock at execution time. | SQL |
mysql.sysdate(prec integer) → timestamp without time zone | Read the wall clock at execution time. | SQL |
time_format
| Signature | Purpose | Source definition |
|---|---|---|
mysql.time_format(time without time zone, text) → text | Format a time value. | SQL |
time_to_sec
| Signature | Purpose | Source definition |
|---|---|---|
mysql.time_to_sec(text) → bigint | Convert a time value to seconds. | SQL |
mysql.time_to_sec(time without time zone) → bigint | Convert a time value to seconds. | SQL |
mysql.time_to_sec(timestamp without time zone) → bigint | Convert a time value to seconds. | SQL |
timediff
| Signature | Purpose | Source definition |
|---|---|---|
mysql.timediff(text, text) → text | Return the difference between two time values. | SQL · C |
mysql.timediff(time without time zone, time without time zone) → text | Return the difference between two time values. | SQL |
mysql.timediff(timestamp without time zone, timestamp without time zone) → text | Return the difference between two time values. | SQL · C |
timestamp
| Signature | Purpose | Source definition |
|---|---|---|
mysql."timestamp"(text, text) → timestamp without time zone | Build a timestamp from the supplied date/time arguments. | SQL |
timestampadd
| Signature | Purpose | Source definition |
|---|---|---|
mysql.timestampadd(text, integer, timestamp without time zone) → timestamp without time zone | Add a quantity in the specified temporal unit. | SQL |
timestampdiff
| Signature | Purpose | Source definition |
|---|---|---|
mysql.timestampdiff(unit text, ts1 text, ts2 text) → bigint | Measure a timestamp difference in the specified unit. | SQL |
mysql.timestampdiff(unit text, ts1 timestamp without time zone, ts2 timestamp without time zone) → bigint | Measure a timestamp difference in the specified unit. | SQL · C |
to_days
| Signature | Purpose | Source definition |
|---|---|---|
mysql.to_days(date) → integer | Convert a date to a MySQL day number. | SQL |
mysql.to_days(text) → integer | Convert a date to a MySQL day number. | SQL |
mysql.to_days(timestamp without time zone) → integer | Convert a date to a MySQL day number. | SQL |
unix_timestamp
| Signature | Purpose | Source definition |
|---|---|---|
mysql.unix_timestamp() → bigint | Return seconds since the Unix epoch. | SQL |
mysql.unix_timestamp(numeric) → numeric | Return seconds since the Unix epoch. | SQL |
mysql.unix_timestamp(text) → numeric | Return seconds since the Unix epoch. | SQL |
mysql.unix_timestamp(timestamp without time zone) → numeric | Return seconds since the Unix epoch. | SQL |
utc_date
| Signature | Purpose | Source definition |
|---|---|---|
mysql.utc_date() → date | Return the current date in UTC. | SQL |
utc_time
| Signature | Purpose | Source definition |
|---|---|---|
mysql.utc_time() → time without time zone | Return the current time of day in UTC. | SQL |
mysql.utc_time(prec integer) → time without time zone | Return the current time of day in UTC. | SQL |
utc_timestamp
| Signature | Purpose | Source definition |
|---|---|---|
mysql.utc_timestamp() → timestamp without time zone | Return the current UTC timestamp. | SQL |
mysql.utc_timestamp(prec integer) → timestamp without time zone | Return the current UTC timestamp. | SQL |
week
| Signature | Purpose | Source definition |
|---|---|---|
mysql.week(numeric) → integer | Return the week number under the selected week mode. | SQL |
mysql.week(numeric, integer) → integer | Return the week number under the selected week mode. | SQL |
mysql.week(text) → integer | Return the week number under the selected week mode. | SQL |
mysql.week(text, integer) → integer | Return the week number under the selected week mode. | SQL |
mysql.week(timestamp without time zone) → integer | Return the week number under the selected week mode. | SQL |
mysql.week(timestamp without time zone, integer) → integer | Return the week number under the selected week mode. | SQL |
weekday
| Signature | Purpose | Source definition |
|---|---|---|
mysql.weekday(numeric) → integer | Number weekdays starting with Monday as 0. | SQL |
mysql.weekday(text) → integer | Number weekdays starting with Monday as 0. | SQL |
mysql.weekday(timestamp without time zone) → integer | Number weekdays starting with Monday as 0. | SQL |
weekofyear
| Signature | Purpose | Source definition |
|---|---|---|
mysql.weekofyear(numeric) → integer | Return the week of the year. | SQL |
mysql.weekofyear(text) → integer | Return the week of the year. | SQL |
mysql.weekofyear(timestamp without time zone) → integer | Return the week of the year. | SQL |
year
| Signature | Purpose | Source definition |
|---|---|---|
mysql.year(date) → integer | Extract the year. | SQL |
mysql.year(numeric) → integer | Extract the year. | SQL |
mysql.year(text) → integer | Extract the year. | SQL |
mysql.year(timestamp without time zone) → integer | Extract the year. | SQL |
yearweek
| Signature | Purpose | Source definition |
|---|---|---|
mysql.yearweek(numeric) → integer | Return the week and its associated year. | SQL |
mysql.yearweek(qdate numeric, mode integer) → integer | Return the week and its associated year. | SQL |
mysql.yearweek(qdate text, mode integer) → integer | Return the week and its associated year. | SQL |
mysql.yearweek(qdate timestamp without time zone, mode integer) → integer | Return the week and its associated year. | SQL |
mysql.yearweek(text) → integer | Return the week and its associated year. | SQL |
mysql.yearweek(timestamp without time zone) → integer | Return the week and its associated year. | SQL |
4 - Conditional functions
IF, IFNULL and ISNULL. Match each branch’s type as well as the condition type.
if
ifnull
| Signature | Purpose | Source definition |
|---|---|---|
mysql.ifnull(bigint, bigint) → bigint | Return the first value when present, otherwise the fallback. | SQL |
mysql.ifnull(bigint, character varying) → character varying | Return the first value when present, otherwise the fallback. | SQL |
mysql.ifnull(boolean, boolean) → boolean | Return the first value when present, otherwise the fallback. | SQL |
mysql.ifnull(bytea, bytea) → bytea | Return the first value when present, otherwise the fallback. | SQL |
mysql.ifnull(character varying, bigint) → character varying | Return the first value when present, otherwise the fallback. | SQL |
mysql.ifnull(character varying, character varying) → character varying | Return the first value when present, otherwise the fallback. | SQL |
mysql.ifnull(character varying, character) → character varying | Return the first value when present, otherwise the fallback. | Generated definition |
mysql.ifnull(character varying, text) → character varying | Return the first value when present, otherwise the fallback. | Generated definition |
mysql.ifnull(character, character varying) → character varying | Return the first value when present, otherwise the fallback. | Generated definition |
mysql.ifnull(character, character) → character | Return the first value when present, otherwise the fallback. | SQL |
mysql.ifnull(character, text) → character varying | Return the first value when present, otherwise the fallback. | Generated definition |
mysql.ifnull(date, date) → date | Return the first value when present, otherwise the fallback. | SQL |
mysql.ifnull(double precision, double precision) → double precision | Return the first value when present, otherwise the fallback. | SQL |
mysql.ifnull(integer, integer) → integer | Return the first value when present, otherwise the fallback. | SQL |
mysql.ifnull(mysql."smallint", mysql."smallint") → mysql."smallint" | Return the first value when present, otherwise the fallback. | SQL |
mysql.ifnull(mysql.double, mysql.double) → mysql.double | Return the first value when present, otherwise the fallback. | SQL |
mysql.ifnull(mysql.tinyint, mysql.tinyint) → mysql.tinyint | Return the first value when present, otherwise the fallback. | SQL |
mysql.ifnull(numeric, numeric) → numeric | Return the first value when present, otherwise the fallback. | SQL |
mysql.ifnull(p1 bigint, p2 text) → text | Return the first value when present, otherwise the fallback. | SQL |
mysql.ifnull(p1 boolean, p2 text) → text | Return the first value when present, otherwise the fallback. | SQL |
mysql.ifnull(p1 date, p2 text) → timestamp without time zone | Return the first value when present, otherwise the fallback. | SQL |
mysql.ifnull(p1 integer, p2 text) → text | Return the first value when present, otherwise the fallback. | SQL |
mysql.ifnull(p1 mysql."smallint", p2 text) → text | Return the first value when present, otherwise the fallback. | SQL |
mysql.ifnull(p1 numeric, p2 text) → text | Return the first value when present, otherwise the fallback. | SQL |
mysql.ifnull(p1 time without time zone, p2 text) → timestamp without time zone | Return the first value when present, otherwise the fallback. | SQL |
mysql.ifnull(p1 timestamp with time zone, p2 text) → timestamp with time zone | Return the first value when present, otherwise the fallback. | SQL |
mysql.ifnull(p1 timestamp without time zone, p2 text) → timestamp without time zone | Return the first value when present, otherwise the fallback. | SQL |
mysql.ifnull(text, bigint) → text | Return the first value when present, otherwise the fallback. | SQL |
mysql.ifnull(text, character varying) → character varying | Return the first value when present, otherwise the fallback. | Generated definition |
mysql.ifnull(text, character) → character varying | Return the first value when present, otherwise the fallback. | Generated definition |
mysql.ifnull(text, text) → text | Return the first value when present, otherwise the fallback. | SQL |
mysql.ifnull(time without time zone, time without time zone) → time without time zone | Return the first value when present, otherwise the fallback. | SQL |
mysql.ifnull(timestamp without time zone, timestamp without time zone) → timestamp without time zone | Return the first value when present, otherwise the fallback. | SQL |
isnull
5 - Session functions
Connection identity, selected database, named locks and statement state.
connection_id
| Signature | Purpose | Source definition |
|---|---|---|
mysql.connection_id() → bigint | Return the PostgreSQL backend PID for this connection. | SQL |
current_user
| Signature | Purpose | Source definition |
|---|---|---|
mysql."current_user"() → text | Effective PostgreSQL role formatted as role@%. | SQL · C |
database
| Signature | Purpose | Source definition |
|---|---|---|
mysql.database() → text | Return the MySQL database selected in this session. | SQL · C |
found_rows
| Signature | Purpose | Source definition |
|---|---|---|
mysql.found_rows() → bigint | Read the session’s found-row count. | SQL · C |
get_lock
| Signature | Purpose | Source definition |
|---|---|---|
mysql.get_lock("any", "any") → bigint | Acquire a named session lock with a timeout. | SQL · C |
is_free_lock
| Signature | Purpose | Source definition |
|---|---|---|
mysql.is_free_lock("any") → bigint | Check whether a named lock is available. | SQL · C |
is_used_lock
| Signature | Purpose | Source definition |
|---|---|---|
mysql.is_used_lock("any") → bigint | Look up the holder of a named lock. | SQL · C |
last_insert_id
| Signature | Purpose | Source definition |
|---|---|---|
mysql.last_insert_id() → bigint | Read the session’s last generated insert ID. | SQL · C |
release_all_locks
| Signature | Purpose | Source definition |
|---|---|---|
mysql.release_all_locks() → bigint | Release all named locks held by this session. | SQL · C |
release_lock
| Signature | Purpose | Source definition |
|---|---|---|
mysql.release_lock("any") → bigint | Release a named session lock. | SQL · C |
row_count
| Signature | Purpose | Source definition |
|---|---|---|
mysql.row_count() → bigint | Read the affected-row count for the previous statement. | SQL · C |
schema
| Signature | Purpose | Source definition |
|---|---|---|
mysql.schema() → text | Return the MySQL database selected in this session. | SQL · C |
session_user
| Signature | Purpose | Source definition |
|---|---|---|
mysql."session_user"() → text | Session role and client host. | SQL · C |
sleep
| Signature | Purpose | Source definition |
|---|---|---|
mysql.sleep(seconds numeric) → character varying | Wait for the requested number of seconds. | SQL |
user
| Signature | Purpose | Source definition |
|---|---|---|
mysql."user"() → text | Return PostgreSQL current_user as text. | SQL |
uuid
| Signature | Purpose | Source definition |
|---|---|---|
mysql.uuid() → text | Generate a UUID. | SQL |
uuid_short
| Signature | Purpose | Source definition |
|---|---|---|
mysql.uuid_short() → text | Generate a short MySQL-style identifier. | SQL · C |
version
| Signature | Purpose | Source definition |
|---|---|---|
mysql.version() → text | Return the advertised MySQL server version. | SQL · C |
6 - Type conversion helpers
Internal routines used by casts, coercion and expression rewriting.
B
C
H
I
| Signature | Purpose | Source definition |
|---|---|---|
mysql."interval"(text, integer) → interval | Convert text to interval. | SQL · C |
S
| Signature | Purpose | Source definition |
|---|---|---|
mysql.str_to_double(text) → double precision | Parse a string as a floating-point value. | SQL |
T
| Signature | Purpose | Source definition |
|---|---|---|
mysql.time_to_timestamp(time without time zone) → timestamp without time zone | Convert time without time zone to timestamp without time zone. | SQL |
V
7 - Comparison operator functions
Internal entry points behind equality and ordering comparisons.
A
| Signature | Purpose | Source definition |
|---|---|---|
mysql.anycompatibleeqbytea(anycompatible, bytea) → boolean | Implements = (equal). | SQL · C |
mysql.anycompatiblegebytea(anycompatible, bytea) → boolean | Implements >= (greater than or equal). | SQL · C |
mysql.anycompatiblegtbytea(anycompatible, bytea) → boolean | Implements > (greater than). | SQL · C |
mysql.anycompatiblelebytea(anycompatible, bytea) → boolean | Implements <= (less than or equal). | SQL · C |
mysql.anycompatibleltbytea(anycompatible, bytea) → boolean | Implements < (less than). | SQL · C |
mysql.anycompatiblenebytea(anycompatible, bytea) → boolean | Implements <> (not equal). | SQL · C |
B
C
| Signature | Purpose | Source definition |
|---|---|---|
mysql.char_eq_char_for_date_format(character, character) → boolean | Implements =# (compare format-specifier characters). | SQL · C |
D
| Signature | Purpose | Source definition |
|---|---|---|
mysql.date_eq_text(date, text) → boolean | Implements = (equal). | SQL |
mysql.date_ge_text(date, text) → boolean | Implements >= (greater than or equal). | SQL |
mysql.date_gt_text(date, text) → boolean | Implements > (greater than). | SQL |
mysql.date_le_text(date, text) → boolean | Implements <= (less than or equal). | SQL |
mysql.date_lt_text(date, text) → boolean | Implements < (less than). | SQL |
mysql.date_ne_text(date, text) → boolean | Implements <> (not equal). | SQL |
mysql.dateeqtext(date, text) → boolean | Test equality after converting the operands. | SQL |
mysql.datenetext(date, text) → boolean | Test inequality after converting the operands. | SQL |
F
| Signature | Purpose | Source definition |
|---|---|---|
mysql.float8_eq_hexlit(double precision, mysql.hexlit) → boolean | Implements = (equal). | Generated definition |
mysql.float8_ge_hexlit(double precision, mysql.hexlit) → boolean | Implements >= (greater than or equal). | Generated definition |
mysql.float8_gt_hexlit(double precision, mysql.hexlit) → boolean | Implements > (greater than). | Generated definition |
mysql.float8_le_hexlit(double precision, mysql.hexlit) → boolean | Implements <= (less than or equal). | Generated definition |
mysql.float8_lt_hexlit(double precision, mysql.hexlit) → boolean | Implements < (less than). | Generated definition |
mysql.float8_ne_hexlit(double precision, mysql.hexlit) → boolean | Implements <> (not equal). | Generated definition |
mysql.float8_nseq_hexlit(double precision, mysql.hexlit) → boolean | Implements <=> (null-safe equality). | Generated definition |
H
I
N
S
| Signature | Purpose | Source definition |
|---|---|---|
mysql.smallintbgeqtext(mysql."smallint", text) → boolean | Implements >= (greater than or equal). | SQL |
mysql.smallintbgtext(mysql."smallint", text) → boolean | Implements > (greater than). | SQL |
mysql.smallintleeqtext(mysql."smallint", text) → boolean | Implements <= (less than or equal). | SQL |
mysql.smallintletext(mysql."smallint", text) → boolean | Implements < (less than). | SQL |
T
V
8 - Arithmetic operator functions
Internal routines for arithmetic on mixed MySQL operand types.
_
| Signature | Purpose | Source definition |
|---|---|---|
mysql._add_bool(boolean) → smallint | Implements + (unary plus). | SQL |
mysql._add_null(text) → smallint | Implements + (unary plus). | SQL |
mysql._sub_bool(boolean) → smallint | Implements - (unary minus). | SQL |
mysql._sub_null(text) → smallint | Implements - (unary minus). | SQL |
A
| Signature | Purpose | Source definition |
|---|---|---|
mysql.anycompatibledivbytea(anycompatible, bytea) → numeric | Implements / (division). | SQL · C |
mysql.anycompatiblemibytea(anycompatible, bytea) → numeric | Implements - (subtraction). | SQL · C |
mysql.anycompatiblemodbytea(anycompatible, bytea) → numeric | Implements % (remainder). | SQL · C |
mysql.anycompatiblemulbytea(anycompatible, bytea) → numeric | Implements * (multiplication). | SQL · C |
mysql.anycompatibleplbytea(anycompatible, bytea) → numeric | Implements + (addition). | SQL · C |
B
C
| Signature | Purpose | Source definition |
|---|---|---|
mysql.char_add_bigint(character, bigint) → bigint | Implements + (addition). | SQL |
mysql.char_add_char(character, character) → bigint | Implements + (addition). | SQL |
mysql.char_divide_bigint(character, bigint) → bigint | Compute the quotient. | SQL |
mysql.char_divide_char(character, character) → bigint | Compute the quotient. | SQL |
mysql.char_minus_bigint(character, bigint) → bigint | Implements - (subtraction). | SQL |
mysql.char_minus_char(character, character) → bigint | Implements - (subtraction). | SQL |
mysql.char_mod_bigint(character, bigint) → bigint | Implements % (remainder). | SQL |
mysql.char_mod_char(character, character) → bigint | Implements % (remainder). | SQL |
mysql.char_multi_bigint(character, bigint) → bigint | Implements * (multiplication). | SQL |
mysql.char_multi_char(character, character) → bigint | Implements * (multiplication). | SQL |
D
F
| Signature | Purpose | Source definition |
|---|---|---|
mysql.float8_div_hexlit(double precision, mysql.hexlit) → double precision | Implements / (division). | Generated definition |
mysql.float8_mi_hexlit(double precision, mysql.hexlit) → double precision | Implements - (subtraction). | Generated definition |
mysql.float8_mod_hexlit(double precision, mysql.hexlit) → double precision | Implements % (remainder). | Generated definition |
mysql.float8_mul_hexlit(double precision, mysql.hexlit) → double precision | Implements * (multiplication). | Generated definition |
mysql.float8_pl_hexlit(double precision, mysql.hexlit) → double precision | Implements + (addition). | Generated definition |
H
I
M
N
| Signature | Purpose | Source definition |
|---|---|---|
mysql.numeric_div_hexlit(numeric, mysql.hexlit) → numeric | Implements / (division). | Generated definition |
mysql.numeric_mi_hexlit(numeric, mysql.hexlit) → numeric | Implements - (subtraction). | Generated definition |
mysql.numeric_mod_hexlit(numeric, mysql.hexlit) → numeric | Implements % (remainder). | Generated definition |
mysql.numeric_mul_hexlit(numeric, mysql.hexlit) → numeric | Implements * (multiplication). | Generated definition |
mysql.numeric_pl_hexlit(numeric, mysql.hexlit) → numeric | Implements + (addition). | Generated definition |
T
V
9 - Bitwise and logical operator functions
Internal routines for bit operations and truth-value tests.
A
| Signature | Purpose | Source definition |
|---|---|---|
mysql.anycompatibleandbytea(anycompatible, bytea) → bigint | Implements & (bitwise and). | SQL · C |
mysql.anycompatiblecondandbytea(anycompatible, bytea) → boolean | Implements && (logical and). | SQL · C |
mysql.anycompatiblecondorbytea(anycompatible, bytea) → boolean | Implements || (logical or). | SQL · C |
mysql.anycompatiblenonarray_or_text(anycompatiblenonarray, text) → boolean | Implements || (logical or). | SQL |
mysql.anycompatibleorbytea(anycompatible, bytea) → bigint | Implements | (bitwise or). | SQL · C |
mysql.anynonarray_or_text(anynonarray, text) → boolean | Evaluate OR after operand coercion. | SQL |
B
F
| Signature | Purpose | Source definition |
|---|---|---|
mysql.float8_and_hexlit(double precision, mysql.hexlit) → bigint | Implements & (bitwise and). | Generated definition |
mysql.float8_or_hexlit(double precision, mysql.hexlit) → bigint | Implements | (bitwise or). | Generated definition |
mysql.float8_shl_hexlit(double precision, mysql.hexlit) → bigint | Implements << (left shift). | Generated definition |
mysql.float8_shr_hexlit(double precision, mysql.hexlit) → bigint | Implements >> (right shift). | Generated definition |
mysql.float8_xor_hexlit(double precision, mysql.hexlit) → bigint | Implements ^# (bitwise xor). | Generated definition |
H
I
N
T
| Signature | Purpose | Source definition |
|---|---|---|
mysql.text_and_hexlit(text, mysql.hexlit) → bigint | Implements & (bitwise and). | Generated definition |
mysql.text_and_text(text, text) → boolean | Implements && (logical and). | SQL |
mysql.text_or_anycompatiblenonarray(text, anycompatiblenonarray) → boolean | Implements || (logical or). | SQL |
mysql.text_or_anynoarray(text, anynonarray) → boolean | Evaluate OR after operand coercion. | SQL |
mysql.text_or_hexlit(text, mysql.hexlit) → bigint | Implements | (bitwise or). | Generated definition |
mysql.text_or_text(text, text) → boolean | Implements || (logical or). | SQL |
mysql.text_shl_hexlit(text, mysql.hexlit) → bigint | Implements << (left shift). | Generated definition |
mysql.text_shr_hexlit(text, mysql.hexlit) → bigint | Implements >> (right shift). | Generated definition |
mysql.text_xor_hexlit(text, mysql.hexlit) → bigint | Implements ^# (bitwise xor). | Generated definition |
V
| Signature | Purpose | Source definition |
|---|---|---|
mysql.varbit_and_hexlit(bit varying, mysql.hexlit) → bigint | Implements & (bitwise and). | Generated definition |
mysql.varbit_or_hexlit(bit varying, mysql.hexlit) → bigint | Implements | (bitwise or). | Generated definition |
mysql.varbit_shl_hexlit(bit varying, mysql.hexlit) → bigint | Implements << (left shift). | Generated definition |
mysql.varbit_shr_hexlit(bit varying, mysql.hexlit) → bigint | Implements >> (right shift). | Generated definition |
mysql.varbit_xor_hexlit(bit varying, mysql.hexlit) → bigint | Implements ^# (bitwise xor). | Generated definition |
10 - Pattern and JSON operator functions
Internal routines for LIKE, regular expressions and JSON field access.
A
| Signature | Purpose | Source definition |
|---|---|---|
mysql.anycompatiblelikebytea(anycompatible, bytea) → boolean | Implements ~~ (like pattern match). | SQL · C |
mysql.anycompatiblenlikebytea(anycompatible, bytea) → boolean | Implements !~~ (negated like match). | SQL · C |
mysql.anycompatiblenregexpbinbytea(anycompatible, bytea) → boolean | Implements !~ (negated case-sensitive regular expression match). | SQL · C |
mysql.anycompatiblenregexpbytea(anycompatible, bytea) → boolean | Implements !~* (negated case-insensitive regular expression match). | SQL · C |
mysql.anycompatibleregexpbinbytea(anycompatible, bytea) → boolean | Implements ~ (case-sensitive regular expression match). | SQL · C |
mysql.anycompatibleregexpbytea(anycompatible, bytea) → boolean | Implements ~* (case-insensitive regular expression match). | SQL · C |
B
H
| Signature | Purpose | Source definition |
|---|---|---|
mysql.hexlit_like(mysql.hexlit, mysql.hexlit) → boolean | Implements ~~ (like pattern match). | Generated definition |
mysql.hexlit_like_bytea(mysql.hexlit, bytea) → boolean | Implements ~~ (like pattern match). | Generated definition |
mysql.hexlit_like_text(mysql.hexlit, text) → boolean | Implements ~~ (like pattern match). | Generated definition |
mysql.hexlit_nlike(mysql.hexlit, mysql.hexlit) → boolean | Implements !~~ (negated like match). | Generated definition |
mysql.hexlit_nlike_bytea(mysql.hexlit, bytea) → boolean | Implements !~~ (negated like match). | Generated definition |
mysql.hexlit_nlike_text(mysql.hexlit, text) → boolean | Implements !~~ (negated like match). | Generated definition |
J
| Signature | Purpose | Source definition |
|---|---|---|
mysql.json_object_field(from_json json, field_name text) → json | Implements -> (extract a json field by name). | SQL |
P
| Signature | Purpose | Source definition |
|---|---|---|
mysql.prefix_like(character, text) → boolean | Implements | SQL · C |
mysql.prefix_like(text, text) → boolean | Implements | SQL · C |
mysql.prefix_not_like(character, text) → boolean | Implements ! | SQL · C |
mysql.prefix_not_like(text, text) → boolean | Implements ! | SQL · C |
R
| Signature | Purpose | Source definition |
|---|---|---|
mysql.regular_expr(bigint, text) → boolean | Implements ~* (case-insensitive regular expression match). | SQL |
mysql.regular_expr_not(bigint, text) → boolean | Implements !~* (negated case-insensitive regular expression match). | SQL |
T
| Signature | Purpose | Source definition |
|---|---|---|
mysql.text_like_bigint(text, bigint) → boolean | Implements ~~ (like pattern match). | SQL |
mysql.text_like_hexlit(text, mysql.hexlit) → boolean | Implements ~~ (like pattern match). | Generated definition |
mysql.text_nlike_hexlit(text, mysql.hexlit) → boolean | Implements !~~ (negated like match). | Generated definition |
mysql.text_not_like_bigint(text, bigint) → boolean | Implements !~~ (negated like match). | SQL |
11 - String and number helpers
Internal routines used by string searches, validation and rounding.
C
| Signature | Purpose | Source definition |
|---|---|---|
mysql.ceil_for_mysql(text) → bigint | Round a number parsed from text up to an integer. | SQL · C |
mysql.check_set(text, text) → boolean | Check a value against a SET definition. | SQL · C |
F
| Signature | Purpose | Source definition |
|---|---|---|
mysql.floor_for_mysql(text) → bigint | Round a number parsed from text down to an integer. | SQL · C |
I
| Signature | Purpose | Source definition |
|---|---|---|
mysql.is_numeric(text) → boolean | Validate the numeric representation. | SQL |
mysql.is_valid_binary(text) → boolean | Validate the numeric representation. | SQL · C |
mysql.is_valid_hex(text) → boolean | Validate the numeric representation. | SQL · C |
T
| Signature | Purpose | Source definition |
|---|---|---|
mysql.text_instr(text, text) → integer | Find a substring for LOCATE or INSTR. | SQL · C |
mysql.text_locate2(text, text) → integer | Find a substring for LOCATE or INSTR. | SQL · C |
mysql.text_locate3(text, text, bigint) → integer | Find a substring for LOCATE or INSTR. | SQL · C |
12 - Temporal conversion helpers
Internal routines for date normalization, week modes and numeric date arithmetic.
_
C
| Signature | Purpose | Source definition |
|---|---|---|
mysql.convert_to_time_format(text) → interval | Normalize date/time input for conversion to interval. | SQL |
mysql.curdate_add(integer) → integer | Apply integer arithmetic to today’s YYYYMMDD value. | SQL |
mysql.curdate_sub(integer) → integer | Apply integer arithmetic to today’s YYYYMMDD value. | SQL |
N
| Signature | Purpose | Source definition |
|---|---|---|
mysql.numeric_timestamp(numeric) → timestamp without time zone | Normalize date/time input for conversion to timestamp without time zone. | SQL |
Function names in r4
Installation snapshot (0d51adc) | r4 source (1e631f9) |
|---|---|
mysql._convert_format_to_halo_for_number_datetime | mysql._normalize_numeric_datetime |
mysql._convert_format_to_halo_for_string_datetime | mysql._normalize_datetime_text |
mysql._convert_format_to_halo_for_string_number_datetime | mysql._normalize_compact_datetime_text |
mysql._convert_format_to_halo_for_string_string_datetime | mysql._normalize_delimited_datetime_text |
13 - Binary and string storage helpers
Internal routines for type I/O, binary expression evaluation and string results.
A
B
| Signature | Purpose | Source definition |
|---|---|---|
mysql.binary_n_in(cstring, oid, integer) → mysql.binary_n | Read the text format of a binary value. | Generated definition · C |
mysql.binary_n_out(mysql.binary_n) → cstring | Write the text format of a binary value. | Generated definition |
mysql.binary_n_recv(internal, oid, integer) → mysql.binary_n | Receive the PostgreSQL binary representation. | Generated definition · C |
mysql.binary_n_send(mysql.binary_n) → bytea | Send the PostgreSQL binary representation. | Generated definition |
mysql.binary_n_typmodin(cstring[]) → integer | Parse the declared length modifier. | Generated definition · C |
mysql.binary_n_typmodout(integer) → cstring | Format the length modifier. | Generated definition · C |
mysql.binary_truth("any") → boolean | Evaluate the truth value of a binary or string operand. | SQL · C |
C
| Signature | Purpose | Source definition |
|---|---|---|
mysql.cast_char("any", integer) → text | Convert an expression to the requested character representation. | SQL · C |
mysql.concat_one("any") → text | Combine string operands for CONCAT or CONCAT_WS while preserving binary results. | SQL · C |
mysql.concat_one(bytea) → bytea | Combine string operands for CONCAT or CONCAT_WS while preserving binary results. | Generated definition · C |
mysql.concat_one(character) → text | Combine string operands for CONCAT or CONCAT_WS while preserving binary results. | SQL · C |
mysql.concat_one(mysql.binary_n) → bytea | Combine string operands for CONCAT or CONCAT_WS while preserving binary results. | Generated definition · C |
mysql.concat_one(mysql.hexlit) → bytea | Combine string operands for CONCAT or CONCAT_WS while preserving binary results. | Generated definition · C |
mysql.concat_one(mysql.varbinary_n) → bytea | Combine string operands for CONCAT or CONCAT_WS while preserving binary results. | Generated definition · C |
mysql.concat_one(text) → text | Combine string operands for CONCAT or CONCAT_WS while preserving binary results. | Generated definition · C |
mysql.concat_pair(bytea, bytea) → bytea | Combine string operands for CONCAT or CONCAT_WS while preserving binary results. | Generated definition |
mysql.concat_pair(bytea, text) → bytea | Combine string operands for CONCAT or CONCAT_WS while preserving binary results. | Generated definition |
mysql.concat_pair(text, bytea) → bytea | Combine string operands for CONCAT or CONCAT_WS while preserving binary results. | Generated definition |
mysql.concat_pair(text, text) → text | Combine string operands for CONCAT or CONCAT_WS while preserving binary results. | Generated definition |
mysql.concat_ws_bytes(VARIADIC "any") → bytea | Combine string operands for CONCAT or CONCAT_WS while preserving binary results. | SQL · C |
mysql.convert_using("any", text) → text | Convert an expression to the requested character representation. | SQL · C |
E
| Signature | Purpose | Source definition |
|---|---|---|
mysql.elt_index("any") → integer | Convert the selector for ELT into a position. | SQL · C |
H
| Signature | Purpose | Source definition |
|---|---|---|
mysql.hexlit_cmp_support(internal) → internal | Provide planner support for comparisons with a hex literal. | SQL · C |
mysql.hexlit_in(cstring) → mysql.hexlit | Read the text format of a binary value. | SQL |
mysql.hexlit_out(mysql.hexlit) → cstring | Write the text format of a binary value. | SQL |
mysql.hexlit_recv(internal) → mysql.hexlit | Receive the PostgreSQL binary representation. | SQL |
mysql.hexlit_send(mysql.hexlit) → bytea | Send the PostgreSQL binary representation. | SQL |
M
| Signature | Purpose | Source definition |
|---|---|---|
mysql.mys_uint64_bitnot(numeric) → numeric | Evaluate a MySQL unsigned 64-bit bitwise expression. | SQL · C |
mysql.mys_uint64_bitop(numeric, numeric, "char") → bigint | Evaluate a MySQL unsigned 64-bit bitwise expression. | SQL · C |
R
| Signature | Purpose | Source definition |
|---|---|---|
mysql.raw_bytes("any") → bytea | Extract the underlying bytes of the value. | SQL · C |
S
| Signature | Purpose | Source definition |
|---|---|---|
mysql.string_result(anyelement, "any") → anyelement | Produce the string result of a rewritten expression. | SQL · C |
V
| Signature | Purpose | Source definition |
|---|---|---|
mysql.varbinary_n_in(cstring, oid, integer) → mysql.varbinary_n | Read the text format of a binary value. | Generated definition · C |
mysql.varbinary_n_out(mysql.varbinary_n) → cstring | Write the text format of a binary value. | Generated definition |
mysql.varbinary_n_recv(internal, oid, integer) → mysql.varbinary_n | Receive the PostgreSQL binary representation. | Generated definition · C |
mysql.varbinary_n_send(mysql.varbinary_n) → bytea | Send the PostgreSQL binary representation. | Generated definition |
mysql.varbinary_n_typmodin(cstring[]) → integer | Parse the declared length modifier. | Generated definition · C |
mysql.varbinary_n_typmodout(integer) → cstring | Format the length modifier. | Generated definition · C |
14 - Aggregate support functions
Internal transition and final functions invoked while computing an aggregate.
B
| Signature | Purpose | Source definition |
|---|---|---|
mysql.bit_and_varbit(bigint, bit varying) → bigint | Accumulate the next input into the aggregate state. | SQL |
mysql.bit_and_varbit_final(bigint) → bigint | Finalize the aggregate state. | SQL |
mysql.bit_or_varbit(bigint, bit varying) → bigint | Accumulate the next input into the aggregate state. | SQL |
mysql.bit_or_varbit_final(bigint) → bigint | Finalize the aggregate state. | SQL |
mysql.bit_xor_varbit(bigint, bit varying) → bigint | Accumulate the next input into the aggregate state. | SQL |
mysql.bit_xor_varbit_final(bigint) → bigint | Finalize the aggregate state. | SQL |
D
| Signature | Purpose | Source definition |
|---|---|---|
mysql.dummy_min_finalfunc_for_bytea(bytea) → bytea | Finalize the aggregate state. | SQL |
mysql.dummy_min_sfunc_for_bytea(bytea, bytea) → bytea | Accumulate the next input into the aggregate state. | SQL |
S
| Signature | Purpose | Source definition |
|---|---|---|
mysql.sum_bool(bigint, boolean) → bigint | Accumulate the next input into the aggregate state. | SQL |
mysql.sum_text(numeric, text) → numeric | Accumulate the next input into the aggregate state. | SQL |
mysql.sum_text_final(numeric) → numeric | Finalize the aggregate state. | SQL |
T
| Signature | Purpose | Source definition |
|---|---|---|
mysql.text_avg_accum(internal, text) → internal | Accumulate the next input into the aggregate state. | SQL · C |
15 - Index support functions
Internal functions for index access, key comparison, hashing and operator-class registration.
B
| Signature | Purpose | Source definition |
|---|---|---|
mysql.binary_n_cmp(mysql.binary_n, mysql.binary_n) → integer | Compare binary keys in B-tree order. | Generated definition |
mysql.binary_n_cmp_bytea(mysql.binary_n, bytea) → integer | Compare binary keys in B-tree order. | Generated definition |
mysql.binary_n_cmp_varbinary_n(mysql.binary_n, mysql.varbinary_n) → integer | Compare binary keys in B-tree order. | Generated definition |
mysql.binary_n_hash(mysql.binary_n) → integer | Hash the binary key for a hash index. | Generated definition |
mysql.binary_n_hash_extended(mysql.binary_n, bigint) → bigint | Hash the binary key for a hash index. | Generated definition |
mysql.bytea_cmp_binary_n(bytea, mysql.binary_n) → integer | Compare binary keys in B-tree order. | Generated definition |
mysql.bytea_cmp_varbinary_n(bytea, mysql.varbinary_n) → integer | Compare binary keys in B-tree order. | Generated definition |
H
| Signature | Purpose | Source definition |
|---|---|---|
mysql.hexlit_cmp(mysql.hexlit, mysql.hexlit) → integer | Compare binary keys in B-tree order. | SQL |
mysql.hexlit_hash(mysql.hexlit) → integer | Hash the binary key for a hash index. | SQL |
mysql.hexlit_hash_extended(mysql.hexlit, bigint) → bigint | Hash the binary key for a hash index. | SQL |
P
| Signature | Purpose | Source definition |
|---|---|---|
mysql.prefix_1042_cmp(character, character) → integer | Compare two keys for a mysql_prefix index. | Generated definition · C |
mysql.prefix_17_cmp(bytea, bytea) → integer | Compare two keys for a mysql_prefix index. | Generated definition · C |
mysql.prefix_25_cmp(text, text) → integer | Compare two keys for a mysql_prefix index. | Generated definition · C |
mysql.prefix_53875699983efc79eeb9e023e66605f5_cmp(mysql.binary_n, mysql.binary_n) → integer | Compare two keys for a mysql_prefix index. | Generated definition · C |
mysql.prefix_b8aba7e65857eaf6a91ca737fb14b87b_cmp(mysql.varbinary_n, mysql.varbinary_n) → integer | Compare two keys for a mysql_prefix index. | Generated definition · C |
mysql.prefix_handler(internal) → index_am_handler | Supply the mysql_prefix access method callbacks. | SQL · C |
mysql.prefix_options(internal) → void | Declare index operator-class options for prefix keys. | SQL · C |
R
| Signature | Purpose | Source definition |
|---|---|---|
mysql.register_prefix_binary(t regtype) → void | Register prefix-index support for a type. EXECUTE is restricted. | SQL |
mysql.register_prefix_type(t regtype, string_storage boolean) → void | Register prefix-index support for a type. EXECUTE is restricted. | SQL |
V
| Signature | Purpose | Source definition |
|---|---|---|
mysql.varbinary_n_cmp(mysql.varbinary_n, mysql.varbinary_n) → integer | Compare binary keys in B-tree order. | Generated definition |
mysql.varbinary_n_cmp_binary_n(mysql.varbinary_n, mysql.binary_n) → integer | Compare binary keys in B-tree order. | Generated definition |
mysql.varbinary_n_cmp_bytea(mysql.varbinary_n, bytea) → integer | Compare binary keys in B-tree order. | Generated definition |
mysql.varbinary_n_hash(mysql.varbinary_n) → integer | Hash the binary key for a hash index. | Generated definition |
mysql.varbinary_n_hash_extended(mysql.varbinary_n, bigint) → bigint | Hash the binary key for a hash index. | Generated definition |
16 - Session state and variable helpers
Internal interfaces behind SET, SHOW, user variables and authentication cache management.
C
| Signature | Purpose | Source definition |
|---|---|---|
mysql.clear_user_variables() → void | Clear the session’s user variables. | SQL · C |
F
| Signature | Purpose | Source definition |
|---|---|---|
mysql.flush_auth_cache() → bigint | Clear the fast-authentication cache. EXECUTE is restricted. | SQL · C |
G
| Signature | Purpose | Source definition |
|---|---|---|
mysql.get_system_global_variable(text) → text | Read a global @@ variable. | SQL |
mysql.get_system_session_variable(text) → text | Read a session @@ variable. | SQL |
mysql.get_system_variable(text, boolean) → text | Resolve a system variable for its requested scope. | SQL · C |
mysql.get_user_var(variable_name character varying) → bytea | Read a MySQL @user variable. | SQL · C |
mysql.getenv(text) → text | Read a server environment variable for installation. EXECUTE is restricted. | SQL · C |
S
17 - DDL and write helpers
Internal routines invoked by column expressions, sequences and row triggers.
auto_increment_advance
| Signature | Purpose | Source definition |
|---|---|---|
mysql.auto_increment_advance() → trigger | Advance the sequence after an explicit AUTO_INCREMENT value. | SQL · C |
column_default
| Signature | Purpose | Source definition |
|---|---|---|
mysql.column_default(oid, integer) → text | Read a column’s default expression. | SQL · C |
generated_column
| Signature | Purpose | Source definition |
|---|---|---|
mysql.generated_column(text, anyelement) → anyelement | Carry a generated-column value through a rewritten expression. | SQL |
generated_numeric
| Signature | Purpose | Source definition |
|---|---|---|
mysql.generated_numeric(numeric, integer) → numeric | Apply the declared type modifier to a generated value. | SQL · C |
generated_value
| Signature | Purpose | Source definition |
|---|---|---|
mysql.generated_value(anyelement) → anyelement | Carry a generated-column value through a rewritten expression. | SQL |
generated_varchar
| Signature | Purpose | Source definition |
|---|---|---|
mysql.generated_varchar(text, integer, boolean) → text | Apply the declared type modifier to a generated value. | SQL · C |
lenient_float8
| Signature | Purpose | Source definition |
|---|---|---|
mysql.lenient_float8(text) → double precision | Coerce a value for a non-strict INSERT or UPDATE. | SQL · C |
lenient_int
| Signature | Purpose | Source definition |
|---|---|---|
mysql.lenient_int(text, bigint, bigint) → bigint | Coerce a value for a non-strict INSERT or UPDATE. | SQL · C |
lenient_numeric
| Signature | Purpose | Source definition |
|---|---|---|
mysql.lenient_numeric(text, integer) → numeric | Coerce a value for a non-strict INSERT or UPDATE. | SQL · C |
lenient_varchar
| Signature | Purpose | Source definition |
|---|---|---|
mysql.lenient_varchar(text, integer) → text | Coerce a value for a non-strict INSERT or UPDATE. | SQL · C |
on_update_current_timestamp
| Signature | Purpose | Source definition |
|---|---|---|
mysql.on_update_current_timestamp() → trigger | Update timestamp columns from a row trigger. | SQL · C |
part_list_columns
| Signature | Purpose | Source definition |
|---|---|---|
mysql.part_list_columns(VARIADIC "any") → text | Build a list-partition column key. | SQL · C |
pending_fk_definitions
| Signature | Purpose | Source definition |
|---|---|---|
mysql.pending_fk_definitions(oid) → SETOF text | Format deferred foreign key definitions for a child relation. | SQL |
pending_fk_guard
| Signature | Purpose | Source definition |
|---|---|---|
mysql.pending_fk_guard() → trigger | Run the trigger for a pending foreign key. | SQL · C |
setval
| Signature | Purpose | Source definition |
|---|---|---|
mysql.setval(regclass, bigint, boolean) → bigint | Set a sequence value and its called flag. | SQL · C |
18 - SHOW and metadata helpers
Internal routines that format catalog values and construct result sets for MySQL clients.
amend_def_val
| Signature | Purpose | Source definition |
|---|---|---|
mysql.amend_def_val(text) → text | Format a PostgreSQL default expression for MySQL metadata. | SQL |
amend_def_val_for_internal
| Signature | Purpose | Source definition |
|---|---|---|
mysql.amend_def_val_for_internal(text) → text | Format a PostgreSQL default expression for MySQL metadata. | SQL |
column_domain
| Signature | Purpose | Source definition |
|---|---|---|
mysql.column_domain(oid, integer) → oid | Find the declared domain for a column. | SQL |
column_extra
| Signature | Purpose | Source definition |
|---|---|---|
mysql.column_extra(oid, integer) → text | Build the Extra field in column metadata. | SQL · C |
column_generation
| Signature | Purpose | Source definition |
|---|---|---|
mysql.column_generation(oid, integer) → text | Read the generation expression for a column. | SQL · C |
decimal_column_type
| Signature | Purpose | Source definition |
|---|---|---|
mysql.decimal_column_type(integer) → text | Decode DECIMAL precision and scale from a type modifier. | SQL · C |
decimal_ps
| Signature | Purpose | Source definition |
|---|---|---|
mysql.decimal_ps(integer) → integer[] | Decode DECIMAL precision and scale from a type modifier. | SQL |
get_column_extra
| Signature | Purpose | Source definition |
|---|---|---|
mysql.get_column_extra(text) → text | Build the Extra field in column metadata. | SQL |
get_column_key
| Signature | Purpose | Source definition |
|---|---|---|
mysql.get_column_key(oid, text) → text | Classify the index key for a column. | SQL |
mysql.get_column_key(text, text, text) → text | Classify the index key for a column. | SQL |
get_func_def
| Signature | Purpose | Source definition |
|---|---|---|
mysql.get_func_def(funcname text, procowner text, prorettype oid, proargtypes oidvector, proargnames text[], prosrc text) → text | Reconstruct a routine definition from its catalog fields. | SQL |
get_funcs_procs_parameters
| Signature | Purpose | Source definition |
|---|---|---|
mysql.get_funcs_procs_parameters() → SETOF record | List routine parameters for metadata clients. | SQL |
get_mysql_proc_arg_mode
| Signature | Purpose | Source definition |
|---|---|---|
mysql.get_mysql_proc_arg_mode(text) → text | Translate a PostgreSQL argument mode into a MySQL mode. | SQL |
get_mysql_type_name
| Signature | Purpose | Source definition |
|---|---|---|
mysql.get_mysql_type_name(oid) → text | Map a catalog type to its MySQL display name. | SQL |
get_proc_def
| Signature | Purpose | Source definition |
|---|---|---|
mysql.get_proc_def(funcname text, proallargtypes oid[], proargmodes "char"[], proargnames text[], prosrc text) → text | Reconstruct a routine definition from its catalog fields. | SQL |
mysql.get_proc_def(procname text, procowner text, proargtypes oidvector, proallargtypes oid[], proargmodes "char"[], proargnames text[], prosrc text) → text | Reconstruct a routine definition from its catalog fields. | SQL |
get_seq_in_index
| Signature | Purpose | Source definition |
|---|---|---|
mysql.get_seq_in_index(text, int2vector) → smallint | Find a column’s ordinal position in an index. | SQL |
index_key_name
| Signature | Purpose | Source definition |
|---|---|---|
mysql.index_key_name(oid) → text | Expose the MySQL index name or its key parts for SHOW INDEX. | SQL · C |
index_key_parts
| Signature | Purpose | Source definition |
|---|---|---|
mysql.index_key_parts(oid, OUT seq integer, OUT column_name text, OUT sub_part integer) → SETOF record | Expose the MySQL index name or its key parts for SHOW INDEX. | SQL · C |
show_create_function
| Signature | Purpose | Source definition |
|---|---|---|
mysql.show_create_function(text, text) → SETOF record | Construct the definition displayed by SHOW CREATE. | SQL |
show_create_procedure
| Signature | Purpose | Source definition |
|---|---|---|
mysql.show_create_procedure(text, text) → SETOF record | Construct the definition displayed by SHOW CREATE. | SQL |
show_create_table
| Signature | Purpose | Source definition |
|---|---|---|
mysql.show_create_table(text, text) → text | Construct the definition displayed by SHOW CREATE. | SQL |
show_create_table_impl
| Signature | Purpose | Source definition |
|---|---|---|
mysql.show_create_table_impl(oid, oid, text, text) → text | Construct the definition displayed by SHOW CREATE. | SQL |
show_create_trigger
show_create_view
| Signature | Purpose | Source definition |
|---|---|---|
mysql.show_create_view(text, text) → text | Construct the definition displayed by SHOW CREATE. | SQL |
show_create_view_impl
| Signature | Purpose | Source definition |
|---|---|---|
mysql.show_create_view_impl(text, text) → text | Construct the definition displayed by SHOW CREATE. | SQL · C |
show_diagnostics
| Signature | Purpose | Source definition |
|---|---|---|
mysql.show_diagnostics(boolean) → TABLE("Level" text, "Code" integer, "Message" text) | Return the session diagnostics used by SHOW WARNINGS or SHOW ERRORS. | SQL · C |
show_table_columns
| Signature | Purpose | Source definition |
|---|---|---|
mysql.show_table_columns(text, text) → SETOF record | Build the rows for SHOW COLUMNS. | SQL |
show_table_full_columns
| Signature | Purpose | Source definition |
|---|---|---|
mysql.show_table_full_columns(text, text) → SETOF record | Build the rows for SHOW COLUMNS. | SQL |
show_table_indexs
| Signature | Purpose | Source definition |
|---|---|---|
mysql.show_table_indexs(text, text) → SETOF record | Build the rows for SHOW INDEX. | SQL |
show_table_indexs_for_8
| Signature | Purpose | Source definition |
|---|---|---|
mysql.show_table_indexs_for_8(text, text) → SETOF record | Build the rows for SHOW INDEX. | SQL |