Skip to content

This is the multi-page printable view of this section.

Return to the regular view of this page

Functions

Find a function by name, then choose the overload that matches the argument types.

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

CategoryEntriesLook up
String and binary functions324Use the return type to distinguish text and byte-string overloads.
Numeric functions45Rounding, division, base conversion and numeric calculations.
Date and time functions162Date arithmetic, formatting, parsing, extraction and clock values.
Conditional functions335IF, IFNULL and ISNULL. Match each branch’s type as well as the condition type.
Session functions18Connection identity, selected database, named locks and statement state.
Type conversion helpers112Internal routines used by casts, coercion and expression rewriting.
Comparison operator functions278Internal entry points behind equality and ordering comparisons.
Arithmetic operator functions193Internal routines for arithmetic on mixed MySQL operand types.
Bitwise and logical operator functions181Internal routines for bit operations and truth-value tests.
Pattern and JSON operator functions41Internal routines for LIKE, regular expressions and JSON field access.
String and number helpers9Internal routines used by string searches, validation and rounding.
Temporal conversion helpers15Internal routines for date normalization, week modes and numeric date arithmetic.
Binary and string storage helpers48Internal routines for type I/O, binary expression evaluation and string results.
Aggregate support functions12Internal transition and final functions invoked while computing an aggregate.
Index support functions24Internal functions for index access, key comparison, hashing and operator-class registration.
Session state and variable helpers16Internal interfaces behind SET, SHOW, user variables and authentication cache management.
DDL and write helpers15Internal routines invoked by column expressions, sequences and row triggers.
SHOW and metadata helpers31Internal 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

quarter

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

year · yearweek

1 - String and binary functions

Use the return type to distinguish text and byte-string overloads.

Use the return type to distinguish text and byte-string overloads.

ascii

SignaturePurposeSource definition
mysql.ascii(bytea) → integerRead the numeric value of the first byte.Generated definition · C
mysql.ascii(mysql.binary_n) → integerRead the numeric value of the first byte.Generated definition · C
mysql.ascii(mysql.hexlit) → integerRead the numeric value of the first byte.Generated definition · C
mysql.ascii(mysql.varbinary_n) → integerRead the numeric value of the first byte.Generated definition · C

bin

SignaturePurposeSource definition
mysql.bin(bigint) → textRepresent an integer in base two.SQL

btrim

SignaturePurposeSource definition
mysql.btrim(bytea) → byteaTrim both ends of the byte string.Generated definition · C
mysql.btrim(bytea, "any") → byteaTrim both ends of the byte string.Generated definition · C
mysql.btrim(mysql.binary_n) → byteaTrim both ends of the byte string.Generated definition · C
mysql.btrim(mysql.binary_n, "any") → byteaTrim both ends of the byte string.Generated definition · C
mysql.btrim(mysql.hexlit) → byteaTrim both ends of the byte string.Generated definition · C
mysql.btrim(mysql.hexlit, "any") → byteaTrim both ends of the byte string.Generated definition · C
mysql.btrim(mysql.varbinary_n) → byteaTrim both ends of the byte string.Generated definition · C
mysql.btrim(mysql.varbinary_n, "any") → byteaTrim both ends of the byte string.Generated definition · C

char_length

SignaturePurposeSource definition
mysql.char_length(bytea) → integerCount characters in text or bytes in a binary string.Generated definition
mysql.char_length(mysql.binary_n) → integerCount characters in text or bytes in a binary string.Generated definition
mysql.char_length(mysql.hexlit) → integerCount characters in text or bytes in a binary string.Generated definition
mysql.char_length(mysql.varbinary_n) → integerCount characters in text or bytes in a binary string.Generated definition

character_length

SignaturePurposeSource definition
mysql.character_length(bytea) → integerCount characters in text or bytes in a binary string.Generated definition
mysql.character_length(mysql.binary_n) → integerCount characters in text or bytes in a binary string.Generated definition
mysql.character_length(mysql.hexlit) → integerCount characters in text or bytes in a binary string.Generated definition
mysql.character_length(mysql.varbinary_n) → integerCount characters in text or bytes in a binary string.Generated definition

concat

SignaturePurposeSource definition
mysql.concat(VARIADIC "any") → textConcatenate the arguments in order.SQL · C

concat_ws

SignaturePurposeSource definition
mysql.concat_ws(text, VARIADIC "any") → textJoin values with the supplied separator.SQL · C

elt

SignaturePurposeSource definition
mysql.elt(VARIADIC "any") → textPick the string at the given one-based position.SQL · C

export_set

SignaturePurposeSource definition
mysql.export_set(bigint, text, text, text, bigint) → textRender set and unset bits using the supplied strings.SQL

field

SignaturePurposeSource definition
mysql.field(t1 bigint, VARIADIC arr bigint[]) → integerFind a value’s position in the argument list.SQL
mysql.field(t1 character varying, VARIADIC arr character varying[]) → integerFind a value’s position in the argument list.SQL
mysql.field(t1 character, VARIADIC arr character[]) → integerFind a value’s position in the argument list.SQL
mysql.field(t1 date, VARIADIC arr date[]) → integerFind a value’s position in the argument list.SQL
mysql.field(t1 integer, VARIADIC arr integer[]) → integerFind a value’s position in the argument list.SQL
mysql.field(t1 mysql."smallint", VARIADIC arr mysql."smallint"[]) → integerFind a value’s position in the argument list.SQL
mysql.field(t1 text, VARIADIC arr text[]) → integerFind a value’s position in the argument list.SQL
mysql.field(t1 time without time zone, VARIADIC arr time without time zone[]) → integerFind a value’s position in the argument list.SQL
mysql.field(t1 timestamp without time zone, VARIADIC arr timestamp without time zone[]) → integerFind a value’s position in the argument list.SQL

find_in_set

SignaturePurposeSource definition
mysql.find_in_set(bigint, text) → integerFind a value in a comma-separated list.SQL
mysql.find_in_set(text, text) → integerFind a value in a comma-separated list.SQL

format

SignaturePurposeSource definition
mysql.format(numeric, bigint) → textFormat a number with the requested decimal places.SQL

hex

SignaturePurposeSource definition
mysql.hex(bigint) → textEncode the value in hexadecimal.SQL · C
mysql.hex(bit varying) → textEncode the value in hexadecimal.SQL · C
mysql.hex(boolean) → textEncode the value in hexadecimal.SQL
mysql.hex(bytea) → textEncode the value in hexadecimal.SQL · C
mysql.hex(character) → textEncode the value in hexadecimal.SQL · C
mysql.hex(double precision) → textEncode the value in hexadecimal.SQL · C
mysql.hex(integer) → textEncode the value in hexadecimal.SQL
mysql.hex(mysql.binary_n) → textEncode the value in hexadecimal.Generated definition · C
mysql.hex(mysql.hexlit) → textEncode the value in hexadecimal.Generated definition · C
mysql.hex(mysql.varbinary_n) → textEncode the value in hexadecimal.Generated definition · C
mysql.hex(numeric) → textEncode the value in hexadecimal.SQL · C
mysql.hex(smallint) → textEncode the value in hexadecimal.SQL
mysql.hex(text) → textEncode the value in hexadecimal.SQL · C

insert

SignaturePurposeSource definition
mysql.insert(text, integer, integer, text) → textReplace part of a string at a specified position.SQL

instr

SignaturePurposeSource definition
mysql.instr(bytea, bytea) → integerFind a substring within the first argument.Generated definition · C
mysql.instr(bytea, mysql.binary_n) → integerFind a substring within the first argument.Generated definition · C
mysql.instr(bytea, mysql.hexlit) → integerFind a substring within the first argument.Generated definition · C
mysql.instr(bytea, mysql.varbinary_n) → integerFind a substring within the first argument.Generated definition · C
mysql.instr(bytea, text) → integerFind a substring within the first argument.Generated definition · C
mysql.instr(mysql.binary_n, bytea) → integerFind a substring within the first argument.Generated definition · C
mysql.instr(mysql.binary_n, mysql.binary_n) → integerFind a substring within the first argument.Generated definition · C
mysql.instr(mysql.binary_n, mysql.hexlit) → integerFind a substring within the first argument.Generated definition · C
mysql.instr(mysql.binary_n, mysql.varbinary_n) → integerFind a substring within the first argument.Generated definition · C
mysql.instr(mysql.binary_n, text) → integerFind a substring within the first argument.Generated definition · C
mysql.instr(mysql.hexlit, bytea) → integerFind a substring within the first argument.Generated definition · C
mysql.instr(mysql.hexlit, mysql.binary_n) → integerFind a substring within the first argument.Generated definition · C
mysql.instr(mysql.hexlit, mysql.hexlit) → integerFind a substring within the first argument.Generated definition · C
mysql.instr(mysql.hexlit, mysql.varbinary_n) → integerFind a substring within the first argument.Generated definition · C
mysql.instr(mysql.hexlit, text) → integerFind a substring within the first argument.Generated definition · C
mysql.instr(mysql.varbinary_n, bytea) → integerFind a substring within the first argument.Generated definition · C
mysql.instr(mysql.varbinary_n, mysql.binary_n) → integerFind a substring within the first argument.Generated definition · C
mysql.instr(mysql.varbinary_n, mysql.hexlit) → integerFind a substring within the first argument.Generated definition · C
mysql.instr(mysql.varbinary_n, mysql.varbinary_n) → integerFind a substring within the first argument.Generated definition · C
mysql.instr(mysql.varbinary_n, text) → integerFind a substring within the first argument.Generated definition · C
mysql.instr(numeric, numeric) → integerFind a substring within the first argument.SQL
mysql.instr(numeric, text) → integerFind a substring within the first argument.SQL
mysql.instr(text, bytea) → integerFind a substring within the first argument.Generated definition · C
mysql.instr(text, mysql.binary_n) → integerFind a substring within the first argument.Generated definition · C
mysql.instr(text, mysql.hexlit) → integerFind a substring within the first argument.Generated definition · C
mysql.instr(text, mysql.varbinary_n) → integerFind a substring within the first argument.Generated definition · C
mysql.instr(text, numeric) → integerFind a substring within the first argument.SQL
mysql.instr(text, text) → integerFind a substring within the first argument.SQL
mysql.instr(time without time zone, numeric) → integerFind a substring within the first argument.SQL
mysql.instr(time without time zone, text) → integerFind a substring within the first argument.SQL
mysql.instr(timestamp with time zone, numeric) → integerFind a substring within the first argument.SQL
mysql.instr(timestamp with time zone, text) → integerFind a substring within the first argument.SQL
mysql.instr(timestamp without time zone, numeric) → integerFind a substring within the first argument.SQL
mysql.instr(timestamp without time zone, text) → integerFind a substring within the first argument.SQL

json_unquote

SignaturePurposeSource definition
mysql.json_unquote(json) → textRemove JSON string quoting.SQL

lcase

SignaturePurposeSource definition
mysql.lcase(bigint) → textConvert text to lowercase. Binary strings retain their bytes.SQL
mysql.lcase(bytea) → byteaConvert text to lowercase. Binary strings retain their bytes.Generated definition · C
mysql.lcase(date) → textConvert text to lowercase. Binary strings retain their bytes.SQL
mysql.lcase(integer) → textConvert text to lowercase. Binary strings retain their bytes.SQL
mysql.lcase(mysql."smallint") → textConvert text to lowercase. Binary strings retain their bytes.SQL
mysql.lcase(mysql.binary_n) → byteaConvert text to lowercase. Binary strings retain their bytes.Generated definition · C
mysql.lcase(mysql.hexlit) → byteaConvert text to lowercase. Binary strings retain their bytes.Generated definition · C
mysql.lcase(mysql.varbinary_n) → byteaConvert text to lowercase. Binary strings retain their bytes.Generated definition · C
mysql.lcase(numeric) → textConvert text to lowercase. Binary strings retain their bytes.SQL
mysql.lcase(text) → textConvert text to lowercase. Binary strings retain their bytes.SQL
mysql.lcase(time without time zone) → textConvert text to lowercase. Binary strings retain their bytes.SQL
mysql.lcase(timestamp with time zone) → textConvert text to lowercase. Binary strings retain their bytes.SQL
mysql.lcase(timestamp without time zone) → textConvert text to lowercase. Binary strings retain their bytes.SQL

left

SignaturePurposeSource definition
mysql."left"(bigint, integer) → textTake a prefix of the requested length.SQL
mysql."left"(bytea, integer) → byteaTake a prefix of the requested length.Generated definition · C
mysql."left"(date, integer) → textTake a prefix of the requested length.SQL
mysql."left"(integer, integer) → textTake a prefix of the requested length.SQL
mysql."left"(mysql."smallint", integer) → textTake a prefix of the requested length.SQL
mysql."left"(mysql.binary_n, integer) → byteaTake a prefix of the requested length.Generated definition · C
mysql."left"(mysql.hexlit, integer) → byteaTake a prefix of the requested length.Generated definition · C
mysql."left"(mysql.varbinary_n, integer) → byteaTake a prefix of the requested length.Generated definition · C
mysql."left"(text, integer) → textTake a prefix of the requested length.SQL · C
mysql."left"(time without time zone, integer) → textTake a prefix of the requested length.SQL
mysql."left"(timestamp with time zone, integer) → textTake a prefix of the requested length.SQL
mysql."left"(timestamp without time zone, integer) → textTake a prefix of the requested length.SQL

length

SignaturePurposeSource definition
mysql.length(bytea) → integerCount the bytes in the value’s string representation.Generated definition
mysql.length(mysql.binary_n) → integerCount the bytes in the value’s string representation.Generated definition
mysql.length(mysql.hexlit) → integerCount the bytes in the value’s string representation.Generated definition
mysql.length(mysql.varbinary_n) → integerCount the bytes in the value’s string representation.Generated definition
mysql.length(num bigint) → integerCount the bytes in the value’s string representation.SQL
mysql.length(num character) → integerCount the bytes in the value’s string representation.SQL
mysql.length(num integer) → integerCount the bytes in the value’s string representation.SQL
mysql.length(num mysql."smallint") → integerCount the bytes in the value’s string representation.SQL
mysql.length(num numeric) → integerCount the bytes in the value’s string representation.SQL
mysql.length(text) → integerCount the bytes in the value’s string representation.SQL

load_file

SignaturePurposeSource definition
mysql.load_file(text) → textRead a server-side file. EXECUTE is restricted.SQL

locate

SignaturePurposeSource definition
mysql.locate(bytea, bytea) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(bytea, bytea, integer) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(bytea, mysql.binary_n) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(bytea, mysql.binary_n, integer) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(bytea, mysql.hexlit) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(bytea, mysql.hexlit, integer) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(bytea, mysql.varbinary_n) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(bytea, mysql.varbinary_n, integer) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(bytea, text) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(bytea, text, integer) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(mysql.binary_n, bytea) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(mysql.binary_n, bytea, integer) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(mysql.binary_n, mysql.binary_n) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(mysql.binary_n, mysql.binary_n, integer) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(mysql.binary_n, mysql.hexlit) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(mysql.binary_n, mysql.hexlit, integer) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(mysql.binary_n, mysql.varbinary_n) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(mysql.binary_n, mysql.varbinary_n, integer) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(mysql.binary_n, text) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(mysql.binary_n, text, integer) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(mysql.hexlit, bytea) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(mysql.hexlit, bytea, integer) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(mysql.hexlit, mysql.binary_n) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(mysql.hexlit, mysql.binary_n, integer) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(mysql.hexlit, mysql.hexlit) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(mysql.hexlit, mysql.hexlit, integer) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(mysql.hexlit, mysql.varbinary_n) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(mysql.hexlit, mysql.varbinary_n, integer) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(mysql.hexlit, text) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(mysql.hexlit, text, integer) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(mysql.varbinary_n, bytea) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(mysql.varbinary_n, bytea, integer) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(mysql.varbinary_n, mysql.binary_n) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(mysql.varbinary_n, mysql.binary_n, integer) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(mysql.varbinary_n, mysql.hexlit) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(mysql.varbinary_n, mysql.hexlit, integer) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(mysql.varbinary_n, mysql.varbinary_n) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(mysql.varbinary_n, mysql.varbinary_n, integer) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(mysql.varbinary_n, text) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(mysql.varbinary_n, text, integer) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(numeric, numeric) → integerFind the first occurrence of a substring, optionally from a given position.SQL
mysql.locate(numeric, numeric, integer) → integerFind the first occurrence of a substring, optionally from a given position.SQL
mysql.locate(numeric, text) → integerFind the first occurrence of a substring, optionally from a given position.SQL
mysql.locate(numeric, text, integer) → integerFind the first occurrence of a substring, optionally from a given position.SQL
mysql.locate(numeric, time without time zone) → integerFind the first occurrence of a substring, optionally from a given position.SQL
mysql.locate(numeric, time without time zone, integer) → integerFind the first occurrence of a substring, optionally from a given position.SQL
mysql.locate(numeric, timestamp with time zone) → integerFind the first occurrence of a substring, optionally from a given position.SQL
mysql.locate(numeric, timestamp with time zone, integer) → integerFind the first occurrence of a substring, optionally from a given position.SQL
mysql.locate(numeric, timestamp without time zone) → integerFind the first occurrence of a substring, optionally from a given position.SQL
mysql.locate(numeric, timestamp without time zone, integer) → integerFind the first occurrence of a substring, optionally from a given position.SQL
mysql.locate(text, bytea) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(text, bytea, integer) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(text, mysql.binary_n) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(text, mysql.binary_n, integer) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(text, mysql.hexlit) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(text, mysql.hexlit, integer) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(text, mysql.varbinary_n) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(text, mysql.varbinary_n, integer) → integerFind the first occurrence of a substring, optionally from a given position.Generated definition · C
mysql.locate(text, numeric) → integerFind the first occurrence of a substring, optionally from a given position.SQL
mysql.locate(text, numeric, integer) → integerFind the first occurrence of a substring, optionally from a given position.SQL
mysql.locate(text, text) → integerFind the first occurrence of a substring, optionally from a given position.SQL
mysql.locate(text, text, integer) → integerFind the first occurrence of a substring, optionally from a given position.SQL
mysql.locate(text, time without time zone) → integerFind the first occurrence of a substring, optionally from a given position.SQL
mysql.locate(text, time without time zone, integer) → integerFind the first occurrence of a substring, optionally from a given position.SQL
mysql.locate(text, timestamp with time zone) → integerFind the first occurrence of a substring, optionally from a given position.SQL
mysql.locate(text, timestamp with time zone, integer) → integerFind the first occurrence of a substring, optionally from a given position.SQL
mysql.locate(text, timestamp without time zone) → integerFind the first occurrence of a substring, optionally from a given position.SQL
mysql.locate(text, timestamp without time zone, integer) → integerFind the first occurrence of a substring, optionally from a given position.SQL

lower

SignaturePurposeSource definition
mysql.lower(bytea) → byteaConvert text to lowercase. Binary strings retain their bytes.Generated definition · C
mysql.lower(mysql.binary_n) → byteaConvert text to lowercase. Binary strings retain their bytes.Generated definition · C
mysql.lower(mysql.hexlit) → byteaConvert text to lowercase. Binary strings retain their bytes.Generated definition · C
mysql.lower(mysql.varbinary_n) → byteaConvert text to lowercase. Binary strings retain their bytes.Generated definition · C

lpad

SignaturePurposeSource definition
mysql.lpad(bigint, integer, text) → textPad on the left to the requested length.SQL
mysql.lpad(text, integer, text) → textPad on the left to the requested length.SQL

ltrim

SignaturePurposeSource definition
mysql.ltrim(bytea) → byteaTrim the beginning of a byte string.Generated definition · C
mysql.ltrim(bytea, "any") → byteaTrim the beginning of a byte string.Generated definition · C
mysql.ltrim(mysql.binary_n) → byteaTrim the beginning of a byte string.Generated definition · C
mysql.ltrim(mysql.binary_n, "any") → byteaTrim the beginning of a byte string.Generated definition · C
mysql.ltrim(mysql.hexlit) → byteaTrim the beginning of a byte string.Generated definition · C
mysql.ltrim(mysql.hexlit, "any") → byteaTrim the beginning of a byte string.Generated definition · C
mysql.ltrim(mysql.varbinary_n) → byteaTrim the beginning of a byte string.Generated definition · C
mysql.ltrim(mysql.varbinary_n, "any") → byteaTrim the beginning of a byte string.Generated definition · C

make_set

SignaturePurposeSource definition
mysql.make_set(bigint, VARIADIC text[]) → textSelect strings using the set bits of a mask.SQL

mid

SignaturePurposeSource definition
mysql.mid(bigint, integer) → textExtract a slice starting at the given position.SQL
mysql.mid(bigint, integer, integer) → textExtract a slice starting at the given position.SQL
mysql.mid(date, integer) → textExtract a slice starting at the given position.SQL
mysql.mid(date, integer, integer) → textExtract a slice starting at the given position.SQL
mysql.mid(integer, integer) → textExtract a slice starting at the given position.SQL
mysql.mid(integer, integer, integer) → textExtract a slice starting at the given position.SQL
mysql.mid(mysql."smallint", integer) → textExtract a slice starting at the given position.SQL
mysql.mid(mysql."smallint", integer, integer) → textExtract a slice starting at the given position.SQL
mysql.mid(str text, pos integer, len integer) → textExtract a slice starting at the given position.SQL
mysql.mid(text, integer) → textExtract a slice starting at the given position.SQL
mysql.mid(time without time zone, integer) → textExtract a slice starting at the given position.SQL
mysql.mid(time without time zone, integer, integer) → textExtract a slice starting at the given position.SQL
mysql.mid(timestamp with time zone, integer) → textExtract a slice starting at the given position.SQL
mysql.mid(timestamp with time zone, integer, integer) → textExtract a slice starting at the given position.SQL
mysql.mid(timestamp without time zone, integer) → textExtract a slice starting at the given position.SQL
mysql.mid(timestamp without time zone, integer, integer) → textExtract a slice starting at the given position.SQL

octet_length

SignaturePurposeSource definition
mysql.octet_length(bytea) → integerCount the bytes in the value’s string representation.Generated definition
mysql.octet_length(mysql.binary_n) → integerCount the bytes in the value’s string representation.Generated definition
mysql.octet_length(mysql.hexlit) → integerCount the bytes in the value’s string representation.Generated definition
mysql.octet_length(mysql.varbinary_n) → integerCount the bytes in the value’s string representation.Generated definition

replace

SignaturePurposeSource definition
mysql.replace(bytea, "any", "any") → byteaReplace occurrences of a search string.Generated definition · C
mysql.replace(mysql.binary_n, "any", "any") → byteaReplace occurrences of a search string.Generated definition · C
mysql.replace(mysql.hexlit, "any", "any") → byteaReplace occurrences of a search string.Generated definition · C
mysql.replace(mysql.varbinary_n, "any", "any") → byteaReplace occurrences of a search string.Generated definition · C
mysql.replace(text, text, text) → textReplace occurrences of a search string.SQL · C

right

SignaturePurposeSource definition
mysql."right"(bigint, integer) → textTake a suffix of the requested length.SQL
mysql."right"(bytea, integer) → byteaTake a suffix of the requested length.Generated definition · C
mysql."right"(date, integer) → textTake a suffix of the requested length.SQL
mysql."right"(integer, integer) → textTake a suffix of the requested length.SQL
mysql."right"(mysql."smallint", integer) → textTake a suffix of the requested length.SQL
mysql."right"(mysql.binary_n, integer) → byteaTake a suffix of the requested length.Generated definition · C
mysql."right"(mysql.hexlit, integer) → byteaTake a suffix of the requested length.Generated definition · C
mysql."right"(mysql.varbinary_n, integer) → byteaTake a suffix of the requested length.Generated definition · C
mysql."right"(numeric, integer) → textTake a suffix of the requested length.SQL
mysql."right"(text, integer) → textTake a suffix of the requested length.SQL · C
mysql."right"(time without time zone, integer) → textTake a suffix of the requested length.SQL
mysql."right"(timestamp with time zone, integer) → textTake a suffix of the requested length.SQL
mysql."right"(timestamp without time zone, integer) → textTake a suffix of the requested length.SQL

rpad

SignaturePurposeSource definition
mysql.rpad(bigint, integer, text) → textPad on the right to the requested length.SQL
mysql.rpad(text, integer, text) → textPad on the right to the requested length.SQL

rtrim

space

SignaturePurposeSource definition
mysql.space(integer) → textProduce a string of spaces.SQL

strcmp

SignaturePurposeSource definition
mysql.strcmp(text, text) → integerCompare two strings and return their ordering.SQL

substr

SignaturePurposeSource definition
mysql.substr(bigint, integer) → textExtract a slice starting at the given position.SQL
mysql.substr(bigint, integer, integer) → textExtract a slice starting at the given position.SQL
mysql.substr(bytea, integer) → byteaExtract a slice starting at the given position.Generated definition · C
mysql.substr(bytea, integer, integer) → byteaExtract a slice starting at the given position.Generated definition · C
mysql.substr(date, integer) → textExtract a slice starting at the given position.SQL
mysql.substr(date, integer, integer) → textExtract a slice starting at the given position.SQL
mysql.substr(integer, integer) → textExtract a slice starting at the given position.SQL
mysql.substr(integer, integer, integer) → textExtract a slice starting at the given position.SQL
mysql.substr(mysql."smallint", integer) → textExtract a slice starting at the given position.SQL
mysql.substr(mysql."smallint", integer, integer) → textExtract a slice starting at the given position.SQL
mysql.substr(mysql.binary_n, integer) → byteaExtract a slice starting at the given position.Generated definition · C
mysql.substr(mysql.binary_n, integer, integer) → byteaExtract a slice starting at the given position.Generated definition · C
mysql.substr(mysql.hexlit, integer) → byteaExtract a slice starting at the given position.Generated definition · C
mysql.substr(mysql.hexlit, integer, integer) → byteaExtract a slice starting at the given position.Generated definition · C
mysql.substr(mysql.varbinary_n, integer) → byteaExtract a slice starting at the given position.Generated definition · C
mysql.substr(mysql.varbinary_n, integer, integer) → byteaExtract a slice starting at the given position.Generated definition · C
mysql.substr(text, integer) → textExtract a slice starting at the given position.SQL
mysql.substr(text, integer, integer) → textExtract a slice starting at the given position.SQL
mysql.substr(time without time zone, integer) → textExtract a slice starting at the given position.SQL
mysql.substr(time without time zone, integer, integer) → textExtract a slice starting at the given position.SQL
mysql.substr(timestamp with time zone, integer) → textExtract a slice starting at the given position.SQL
mysql.substr(timestamp with time zone, integer, integer) → textExtract a slice starting at the given position.SQL
mysql.substr(timestamp without time zone, integer) → textExtract a slice starting at the given position.SQL
mysql.substr(timestamp without time zone, integer, integer) → textExtract a slice starting at the given position.SQL

substring

SignaturePurposeSource definition
mysql."substring"(bigint, integer) → textExtract a slice starting at the given position.SQL
mysql."substring"(bigint, integer, integer) → textExtract a slice starting at the given position.SQL
mysql."substring"(bytea, integer) → byteaExtract a slice starting at the given position.Generated definition · C
mysql."substring"(bytea, integer, integer) → byteaExtract a slice starting at the given position.Generated definition · C
mysql."substring"(date, integer) → textExtract a slice starting at the given position.SQL
mysql."substring"(date, integer, integer) → textExtract a slice starting at the given position.SQL
mysql."substring"(integer, integer) → textExtract a slice starting at the given position.SQL
mysql."substring"(integer, integer, integer) → textExtract a slice starting at the given position.SQL
mysql."substring"(mysql."smallint", integer) → textExtract a slice starting at the given position.SQL
mysql."substring"(mysql."smallint", integer, integer) → textExtract a slice starting at the given position.SQL
mysql."substring"(mysql.binary_n, integer) → byteaExtract a slice starting at the given position.Generated definition · C
mysql."substring"(mysql.binary_n, integer, integer) → byteaExtract a slice starting at the given position.Generated definition · C
mysql."substring"(mysql.hexlit, integer) → byteaExtract a slice starting at the given position.Generated definition · C
mysql."substring"(mysql.hexlit, integer, integer) → byteaExtract a slice starting at the given position.Generated definition · C
mysql."substring"(mysql.varbinary_n, integer) → byteaExtract a slice starting at the given position.Generated definition · C
mysql."substring"(mysql.varbinary_n, integer, integer) → byteaExtract a slice starting at the given position.Generated definition · C
mysql."substring"(text, integer) → textExtract a slice starting at the given position.SQL · C
mysql."substring"(text, integer, integer) → textExtract a slice starting at the given position.SQL · C
mysql."substring"(time without time zone, integer) → textExtract a slice starting at the given position.SQL
mysql."substring"(time without time zone, integer, integer) → textExtract a slice starting at the given position.SQL
mysql."substring"(timestamp with time zone, integer) → textExtract a slice starting at the given position.SQL
mysql."substring"(timestamp with time zone, integer, integer) → textExtract a slice starting at the given position.SQL
mysql."substring"(timestamp without time zone, integer) → textExtract a slice starting at the given position.SQL
mysql."substring"(timestamp without time zone, integer, integer) → textExtract a slice starting at the given position.SQL

substring_index

SignaturePurposeSource definition
mysql.substring_index(text, text, integer) → textSplit at a delimiter and take the requested part.SQL · C

ucase

SignaturePurposeSource definition
mysql.ucase(bigint) → textConvert text to uppercase. Binary strings retain their bytes.SQL
mysql.ucase(bytea) → byteaConvert text to uppercase. Binary strings retain their bytes.Generated definition · C
mysql.ucase(date) → textConvert text to uppercase. Binary strings retain their bytes.SQL
mysql.ucase(integer) → textConvert text to uppercase. Binary strings retain their bytes.SQL
mysql.ucase(mysql."smallint") → textConvert text to uppercase. Binary strings retain their bytes.SQL
mysql.ucase(mysql.binary_n) → byteaConvert text to uppercase. Binary strings retain their bytes.Generated definition · C
mysql.ucase(mysql.hexlit) → byteaConvert text to uppercase. Binary strings retain their bytes.Generated definition · C
mysql.ucase(mysql.varbinary_n) → byteaConvert text to uppercase. Binary strings retain their bytes.Generated definition · C
mysql.ucase(numeric) → textConvert text to uppercase. Binary strings retain their bytes.SQL
mysql.ucase(text) → textConvert text to uppercase. Binary strings retain their bytes.SQL
mysql.ucase(time without time zone) → textConvert text to uppercase. Binary strings retain their bytes.SQL
mysql.ucase(timestamp with time zone) → textConvert text to uppercase. Binary strings retain their bytes.SQL
mysql.ucase(timestamp without time zone) → textConvert text to uppercase. Binary strings retain their bytes.SQL

unhex

SignaturePurposeSource definition
mysql.unhex(bigint) → byteaDecode hexadecimal digits into bytes.SQL
mysql.unhex(bytea) → byteaDecode hexadecimal digits into bytes.SQL · C
mysql.unhex(text) → byteaDecode hexadecimal digits into bytes.SQL · C

upper

SignaturePurposeSource definition
mysql.upper(bytea) → byteaConvert text to uppercase. Binary strings retain their bytes.Generated definition · C
mysql.upper(mysql.binary_n) → byteaConvert text to uppercase. Binary strings retain their bytes.Generated definition · C
mysql.upper(mysql.hexlit) → byteaConvert text to uppercase. Binary strings retain their bytes.Generated definition · C
mysql.upper(mysql.varbinary_n) → byteaConvert text to uppercase. Binary strings retain their bytes.Generated definition · C

2 - Numeric functions

Rounding, division, base conversion and numeric calculations.

Rounding, division, base conversion and numeric calculations.

bit_count

SignaturePurposeSource definition
mysql.bit_count(bigint) → integerCount the set bits.SQL
mysql.bit_count(bytea) → integerCount the set bits.SQL
mysql.bit_count(text) → integerCount the set bits.SQL

ceil

SignaturePurposeSource definition
mysql.ceil(text) → bigintRound up to an integer.SQL

ceiling

SignaturePurposeSource definition
mysql.ceiling(text) → bigintRound up to an integer.SQL

conv

SignaturePurposeSource definition
mysql.conv(bigint, integer, integer) → textConvert a number between bases.SQL
mysql.conv(text, integer, integer) → textConvert a number between bases.SQL

floor

SignaturePurposeSource definition
mysql.floor(text) → bigintRound down to an integer.SQL

int_div

SignaturePurposeSource definition
mysql.int_div(mysql.hexlit, mysql.hexlit) → bigintCompute the integer quotient for MySQL DIV.SQL
mysql.int_div(mysql.hexlit, numeric) → bigintCompute the integer quotient for MySQL DIV.SQL
mysql.int_div(numeric, mysql.hexlit) → bigintCompute the integer quotient for MySQL DIV.SQL
mysql.int_div(numeric, numeric) → bigintCompute the integer quotient for MySQL DIV.SQL

log

SignaturePurposeSource definition
mysql.log(bigint) → numericCompute a logarithm.SQL
mysql.log(integer) → numericCompute a logarithm.SQL
mysql.log(numeric) → numericCompute a logarithm.SQL
mysql.log(smallint) → numericCompute a logarithm.SQL

log2

SignaturePurposeSource definition
mysql.log2(double precision) → numericCompute the base-two logarithm.SQL
mysql.log2(numeric) → numericCompute the base-two logarithm.SQL

mod

SignaturePurposeSource definition
mysql.mod(bigint, bigint) → bigintReturn the remainder of division.SQL
mysql.mod(bigint, text) → numericReturn the remainder of division.SQL
mysql.mod(integer, integer) → integerReturn the remainder of division.SQL
mysql.mod(integer, text) → numericReturn the remainder of division.SQL
mysql.mod(mysql."smallint", mysql."smallint") → mysql."smallint"Return the remainder of division.SQL
mysql.mod(mysql."smallint", text) → numericReturn the remainder of division.SQL
mysql.mod(numeric, numeric) → numericReturn the remainder of division.SQL
mysql.mod(numeric, text) → numericReturn the remainder of division.SQL
mysql.mod(text, bigint) → numericReturn the remainder of division.SQL
mysql.mod(text, integer) → numericReturn the remainder of division.SQL
mysql.mod(text, mysql."smallint") → numericReturn the remainder of division.SQL
mysql.mod(text, numeric) → numericReturn the remainder of division.SQL
mysql.mod(text, text) → numericReturn the remainder of division.SQL

rand

SignaturePurposeSource definition
mysql.rand() → numericGenerate a pseudorandom number.SQL
mysql.rand(bigint) → numericGenerate a pseudorandom number.SQL
mysql.rand(integer) → numericGenerate a pseudorandom number.SQL

round

SignaturePurposeSource definition
mysql.round(integer) → integerRound to the requested precision.SQL
mysql.round(integer, integer) → integerRound to the requested precision.SQL
mysql.round(numeric) → integerRound to the requested precision.SQL
mysql.round(numeric, integer) → numericRound to the requested precision.SQL
mysql.round(text) → numericRound to the requested precision.SQL
mysql.round(text, integer) → numericRound to the requested precision.SQL

sqrt

SignaturePurposeSource definition
mysql.sqrt(bigint) → numericCompute the square root.SQL
mysql.sqrt(integer) → numericCompute the square root.SQL
mysql.sqrt(numeric) → numericCompute the square root.SQL
mysql.sqrt(smallint) → numericCompute the square root.SQL

truncate

SignaturePurposeSource definition
mysql.truncate(numeric, integer) → numericTruncate a number to the requested decimal place.SQL

3 - Date and time functions

Date arithmetic, formatting, parsing, extraction and clock values.

Date arithmetic, formatting, parsing, extraction and clock values.

adddate

addtime

convert_tz

SignaturePurposeSource definition
mysql.convert_tz(text, text, text) → timestamp without time zoneConvert a temporal value between time zones.SQL
mysql.convert_tz(timestamp without time zone, text, text) → timestamp without time zoneConvert a temporal value between time zones.SQL

curdate

SignaturePurposeSource definition
mysql.curdate() → dateReturn the current date.SQL

curtime

SignaturePurposeSource definition
mysql.curtime() → time without time zoneReturn the current time of day.SQL
mysql.curtime(prec integer) → time without time zoneReturn the current time of day.SQL

date

SignaturePurposeSource definition
mysql.date(numeric) → dateExtract or parse a date.SQL
pg_catalog.date(text) → dateExtract or parse a date.SQL

date_add

SignaturePurposeSource definition
mysql.date_add(date, interval) → dateAdd a day count or interval to a date.SQL
mysql.date_add(numeric, interval) → timestamp without time zoneAdd a day count or interval to a date.SQL
mysql.date_add(text, interval) → timestamp without time zoneAdd a day count or interval to a date.SQL
mysql.date_add(timestamp without time zone, interval) → timestamp without time zoneAdd a day count or interval to a date.SQL

date_format

SignaturePurposeSource definition
mysql.date_format(text, text) → textFormat a date with MySQL percent directives.SQL
mysql.date_format(timestamp with time zone, text) → textFormat a date with MySQL percent directives.SQL

date_sub

SignaturePurposeSource definition
mysql.date_sub(date, interval) → dateSubtract a day count or interval from a date.SQL
mysql.date_sub(numeric, interval) → timestamp without time zoneSubtract a day count or interval from a date.SQL
mysql.date_sub(text, interval) → timestamp without time zoneSubtract a day count or interval from a date.SQL
mysql.date_sub(timestamp without time zone, interval) → timestamp without time zoneSubtract a day count or interval from a date.SQL

datediff

SignaturePurposeSource definition
mysql.datediff(date, date) → integerReturn the difference between two dates in days.SQL
mysql.datediff(numeric, numeric) → integerReturn the difference between two dates in days.SQL
mysql.datediff(numeric, text) → integerReturn the difference between two dates in days.SQL
mysql.datediff(text, numeric) → integerReturn the difference between two dates in days.SQL
mysql.datediff(text, text) → integerReturn the difference between two dates in days.SQL
mysql.datediff(text, timestamp without time zone) → integerReturn the difference between two dates in days.SQL
mysql.datediff(timestamp without time zone, text) → integerReturn the difference between two dates in days.SQL
mysql.datediff(timestamp without time zone, timestamp without time zone) → integerReturn the difference between two dates in days.SQL

day

SignaturePurposeSource definition
mysql.day(numeric) → integerReturn the day of the month.SQL
mysql.day(text) → integerReturn the day of the month.SQL
mysql.day(timestamp without time zone) → integerReturn the day of the month.SQL

dayname

SignaturePurposeSource definition
mysql.dayname(numeric) → textReturn the weekday name.SQL
mysql.dayname(text) → textReturn the weekday name.SQL
mysql.dayname(timestamp without time zone) → textReturn the weekday name.SQL

dayofmonth

SignaturePurposeSource definition
mysql.dayofmonth(numeric) → integerReturn the day of the month.SQL
mysql.dayofmonth(text) → integerReturn the day of the month.SQL
mysql.dayofmonth(timestamp without time zone) → integerReturn the day of the month.SQL

dayofweek

SignaturePurposeSource definition
mysql.dayofweek(numeric) → integerNumber weekdays starting with Sunday as 1.SQL
mysql.dayofweek(text) → integerNumber weekdays starting with Sunday as 1.SQL
mysql.dayofweek(timestamp without time zone) → integerNumber weekdays starting with Sunday as 1.SQL

dayofyear

SignaturePurposeSource definition
mysql.dayofyear(numeric) → integerReturn the ordinal day of the year.SQL
mysql.dayofyear(text) → integerReturn the ordinal day of the year.SQL
mysql.dayofyear(timestamp without time zone) → integerReturn the ordinal day of the year.SQL

extract

SignaturePurposeSource definition
mysql."extract"(text, text) → numericExtract the requested date or time field.SQL
mysql."extract"(text, time without time zone) → numericExtract the requested date or time field.SQL · C
mysql."extract"(text, timestamp without time zone) → numericExtract the requested date or time field.SQL · C

from_days

SignaturePurposeSource definition
mysql.from_days(integer) → dateConvert a MySQL day number to a date.SQL

from_unixtime

SignaturePurposeSource definition
mysql.from_unixtime(double precision) → timestamp without time zoneConvert Unix time to a date/time value or formatted string.SQL
mysql.from_unixtime(double precision, text) → textConvert Unix time to a date/time value or formatted string.SQL

hour

last_day

SignaturePurposeSource definition
mysql.last_day(date) → dateFind the last date of the month.SQL
mysql.last_day(numeric) → dateFind the last date of the month.SQL
mysql.last_day(text) → dateFind the last date of the month.SQL
mysql.last_day(timestamp with time zone) → dateFind the last date of the month.SQL
mysql.last_day(timestamp without time zone) → dateFind the last date of the month.SQL

makedate

SignaturePurposeSource definition
mysql.makedate(integer, integer) → dateBuild a date from a year and day of year.SQL

maketime

SignaturePurposeSource definition
mysql.maketime(integer, integer, numeric) → time without time zoneBuild a time from hours, minutes and seconds.SQL

microsecond

minute

month

SignaturePurposeSource definition
mysql.month(numeric) → integerReturn the month number.SQL
mysql.month(text) → integerReturn the month number.SQL
mysql.month(timestamp without time zone) → integerReturn the month number.SQL

monthname

SignaturePurposeSource definition
mysql.monthname(numeric) → textReturn the month name.SQL
mysql.monthname(text) → textReturn the month name.SQL
mysql.monthname(timestamp without time zone) → textReturn the month name.SQL

now

SignaturePurposeSource definition
mysql.now() → timestamp without time zoneReturn the transaction’s current timestamp.SQL
mysql.now(prec integer) → timestamp without time zoneReturn the transaction’s current timestamp.SQL

period_add

SignaturePurposeSource definition
mysql.period_add(integer, integer) → textAdd months to a year-month period.SQL

period_diff

SignaturePurposeSource definition
mysql.period_diff(integer, integer) → integerFind the difference between year-month periods in months.SQL

quarter

SignaturePurposeSource definition
mysql.quarter(date) → integerReturn the quarter of the year.SQL
mysql.quarter(numeric) → integerReturn the quarter of the year.SQL
mysql.quarter(text) → integerReturn the quarter of the year.SQL
mysql.quarter(timestamp without time zone) → integerReturn the quarter of the year.SQL

sec_to_time

SignaturePurposeSource definition
mysql.sec_to_time(bigint) → time without time zoneConvert seconds to a time value.SQL

second

str_to_date

SignaturePurposeSource definition
mysql.str_to_date(text, text) → timestamp without time zoneParse a date or time with a MySQL format string.SQL

subdate

SignaturePurposeSource definition
mysql.subdate(date, integer) → dateSubtract a day count or interval from a date.SQL
mysql.subdate(date, interval) → timestamp without time zoneSubtract a day count or interval from a date.SQL
mysql.subdate(numeric, integer) → timestamp without time zoneSubtract a day count or interval from a date.SQL
mysql.subdate(numeric, interval) → timestamp without time zoneSubtract a day count or interval from a date.SQL
mysql.subdate(text, integer) → timestamp without time zoneSubtract a day count or interval from a date.SQL
mysql.subdate(text, interval) → timestamp without time zoneSubtract a day count or interval from a date.SQL
mysql.subdate(timestamp without time zone, integer) → timestamp without time zoneSubtract a day count or interval from a date.SQL
mysql.subdate(timestamp without time zone, interval) → timestamp without time zoneSubtract a day count or interval from a date.SQL

subtime

sysdate

SignaturePurposeSource definition
mysql.sysdate() → timestamp without time zoneRead the wall clock at execution time.SQL
mysql.sysdate(prec integer) → timestamp without time zoneRead the wall clock at execution time.SQL

time_format

SignaturePurposeSource definition
mysql.time_format(time without time zone, text) → textFormat a time value.SQL

time_to_sec

SignaturePurposeSource definition
mysql.time_to_sec(text) → bigintConvert a time value to seconds.SQL
mysql.time_to_sec(time without time zone) → bigintConvert a time value to seconds.SQL
mysql.time_to_sec(timestamp without time zone) → bigintConvert a time value to seconds.SQL

timediff

SignaturePurposeSource definition
mysql.timediff(text, text) → textReturn the difference between two time values.SQL · C
mysql.timediff(time without time zone, time without time zone) → textReturn the difference between two time values.SQL
mysql.timediff(timestamp without time zone, timestamp without time zone) → textReturn the difference between two time values.SQL · C

timestamp

SignaturePurposeSource definition
mysql."timestamp"(text, text) → timestamp without time zoneBuild a timestamp from the supplied date/time arguments.SQL

timestampadd

SignaturePurposeSource definition
mysql.timestampadd(text, integer, timestamp without time zone) → timestamp without time zoneAdd a quantity in the specified temporal unit.SQL

timestampdiff

SignaturePurposeSource definition
mysql.timestampdiff(unit text, ts1 text, ts2 text) → bigintMeasure a timestamp difference in the specified unit.SQL
mysql.timestampdiff(unit text, ts1 timestamp without time zone, ts2 timestamp without time zone) → bigintMeasure a timestamp difference in the specified unit.SQL · C

to_days

SignaturePurposeSource definition
mysql.to_days(date) → integerConvert a date to a MySQL day number.SQL
mysql.to_days(text) → integerConvert a date to a MySQL day number.SQL
mysql.to_days(timestamp without time zone) → integerConvert a date to a MySQL day number.SQL

unix_timestamp

SignaturePurposeSource definition
mysql.unix_timestamp() → bigintReturn seconds since the Unix epoch.SQL
mysql.unix_timestamp(numeric) → numericReturn seconds since the Unix epoch.SQL
mysql.unix_timestamp(text) → numericReturn seconds since the Unix epoch.SQL
mysql.unix_timestamp(timestamp without time zone) → numericReturn seconds since the Unix epoch.SQL

utc_date

SignaturePurposeSource definition
mysql.utc_date() → dateReturn the current date in UTC.SQL

utc_time

SignaturePurposeSource definition
mysql.utc_time() → time without time zoneReturn the current time of day in UTC.SQL
mysql.utc_time(prec integer) → time without time zoneReturn the current time of day in UTC.SQL

utc_timestamp

SignaturePurposeSource definition
mysql.utc_timestamp() → timestamp without time zoneReturn the current UTC timestamp.SQL
mysql.utc_timestamp(prec integer) → timestamp without time zoneReturn the current UTC timestamp.SQL

week

SignaturePurposeSource definition
mysql.week(numeric) → integerReturn the week number under the selected week mode.SQL
mysql.week(numeric, integer) → integerReturn the week number under the selected week mode.SQL
mysql.week(text) → integerReturn the week number under the selected week mode.SQL
mysql.week(text, integer) → integerReturn the week number under the selected week mode.SQL
mysql.week(timestamp without time zone) → integerReturn the week number under the selected week mode.SQL
mysql.week(timestamp without time zone, integer) → integerReturn the week number under the selected week mode.SQL

weekday

SignaturePurposeSource definition
mysql.weekday(numeric) → integerNumber weekdays starting with Monday as 0.SQL
mysql.weekday(text) → integerNumber weekdays starting with Monday as 0.SQL
mysql.weekday(timestamp without time zone) → integerNumber weekdays starting with Monday as 0.SQL

weekofyear

SignaturePurposeSource definition
mysql.weekofyear(numeric) → integerReturn the week of the year.SQL
mysql.weekofyear(text) → integerReturn the week of the year.SQL
mysql.weekofyear(timestamp without time zone) → integerReturn the week of the year.SQL

year

SignaturePurposeSource definition
mysql.year(date) → integerExtract the year.SQL
mysql.year(numeric) → integerExtract the year.SQL
mysql.year(text) → integerExtract the year.SQL
mysql.year(timestamp without time zone) → integerExtract the year.SQL

yearweek

SignaturePurposeSource definition
mysql.yearweek(numeric) → integerReturn the week and its associated year.SQL
mysql.yearweek(qdate numeric, mode integer) → integerReturn the week and its associated year.SQL
mysql.yearweek(qdate text, mode integer) → integerReturn the week and its associated year.SQL
mysql.yearweek(qdate timestamp without time zone, mode integer) → integerReturn the week and its associated year.SQL
mysql.yearweek(text) → integerReturn the week and its associated year.SQL
mysql.yearweek(timestamp without time zone) → integerReturn 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 and ISNULL. Match each branch’s type as well as the condition type.

if

SignaturePurposeSource definition
mysql.if(bigint, boolean, boolean) → booleanSelect the second or third argument according to the condition.Generated definition
mysql.if(bigint, character varying, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(bigint, character varying, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(bigint, character, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(bigint, character, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(bigint, text, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(bigint, text, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(boolean, boolean, boolean) → booleanSelect the second or third argument according to the condition.Generated definition
mysql.if(boolean, character varying, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(boolean, character varying, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(boolean, character, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(boolean, character, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(boolean, text, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(boolean, text, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(condition bigint, value2 bigint, value3 bigint) → bigintSelect the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 character varying, value3 character varying) → character varyingSelect the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 character, value3 character) → characterSelect the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 date, value3 date) → dateSelect the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 double precision, value3 double precision) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 integer, value3 integer) → integerSelect the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 mysql."real", value3 mysql."real") → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 mysql."smallint", value3 mysql."smallint") → mysql."smallint"Select the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 mysql.datetime, value3 mysql.datetime) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 mysql.double, value3 mysql.double) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 mysql.mediumint, value3 mysql.mediumint) → mysql.mediumintSelect the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 mysql.tinyint, value3 mysql.tinyint) → mysql.tinyintSelect the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 numeric, value3 numeric) → numericSelect the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 real, value3 real) → realSelect the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 text, value3 text) → textSelect the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 time without time zone, value3 time without time zone) → time without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition bigint, value2 timestamp without time zone, value3 timestamp without time zone) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 bigint, value3 bigint) → bigintSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 character varying, value3 character varying) → character varyingSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 character, value3 character) → characterSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 date, value3 date) → dateSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 double precision, value3 double precision) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 integer, value3 integer) → integerSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 mysql."real", value3 mysql."real") → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 mysql."smallint", value3 mysql."smallint") → mysql."smallint"Select the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 mysql.datetime, value3 mysql.datetime) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 mysql.double, value3 mysql.double) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 mysql.mediumint, value3 mysql.mediumint) → mysql.mediumintSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 mysql.tinyint, value3 mysql.tinyint) → mysql.tinyintSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 numeric, value3 numeric) → numericSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 real, value3 real) → realSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 text, value3 text) → textSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 time without time zone, value3 time without time zone) → time without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition boolean, value2 timestamp without time zone, value3 timestamp without time zone) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 bigint, value3 bigint) → bigintSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 character varying, value3 character varying) → character varyingSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 character, value3 character) → characterSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 date, value3 date) → dateSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 double precision, value3 double precision) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 integer, value3 integer) → integerSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 mysql."real", value3 mysql."real") → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 mysql."smallint", value3 mysql."smallint") → mysql."smallint"Select the second or third argument according to the condition.SQL
mysql.if(condition date, value2 mysql.datetime, value3 mysql.datetime) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 mysql.double, value3 mysql.double) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 mysql.mediumint, value3 mysql.mediumint) → mysql.mediumintSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 mysql.tinyint, value3 mysql.tinyint) → mysql.tinyintSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 numeric, value3 numeric) → numericSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 real, value3 real) → realSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 text, value3 text) → textSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 time without time zone, value3 time without time zone) → time without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition date, value2 timestamp without time zone, value3 timestamp without time zone) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 bigint, value3 bigint) → bigintSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 character varying, value3 character varying) → character varyingSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 character, value3 character) → characterSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 date, value3 date) → dateSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 double precision, value3 double precision) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 integer, value3 integer) → integerSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 mysql."real", value3 mysql."real") → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 mysql."smallint", value3 mysql."smallint") → mysql."smallint"Select the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 mysql.datetime, value3 mysql.datetime) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 mysql.double, value3 mysql.double) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 mysql.mediumint, value3 mysql.mediumint) → mysql.mediumintSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 mysql.tinyint, value3 mysql.tinyint) → mysql.tinyintSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 numeric, value3 numeric) → numericSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 real, value3 real) → realSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 text, value3 text) → textSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 time without time zone, value3 time without time zone) → time without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition double precision, value2 timestamp without time zone, value3 timestamp without time zone) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 bigint, value3 bigint) → bigintSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 character varying, value3 character varying) → character varyingSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 character, value3 character) → characterSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 date, value3 date) → dateSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 double precision, value3 double precision) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 integer, value3 integer) → integerSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 mysql."real", value3 mysql."real") → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 mysql."smallint", value3 mysql."smallint") → mysql."smallint"Select the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 mysql.datetime, value3 mysql.datetime) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 mysql.double, value3 mysql.double) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 mysql.mediumint, value3 mysql.mediumint) → mysql.mediumintSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 mysql.tinyint, value3 mysql.tinyint) → mysql.tinyintSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 numeric, value3 numeric) → numericSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 real, value3 real) → realSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 text, value3 text) → textSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 time without time zone, value3 time without time zone) → time without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition integer, value2 timestamp without time zone, value3 timestamp without time zone) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 bigint, value3 bigint) → bigintSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 character varying, value3 character varying) → character varyingSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 character, value3 character) → characterSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 date, value3 date) → dateSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 double precision, value3 double precision) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 integer, value3 integer) → integerSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 mysql."real", value3 mysql."real") → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 mysql."smallint", value3 mysql."smallint") → mysql."smallint"Select the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 mysql.datetime, value3 mysql.datetime) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 mysql.double, value3 mysql.double) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 mysql.mediumint, value3 mysql.mediumint) → mysql.mediumintSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 mysql.tinyint, value3 mysql.tinyint) → mysql.tinyintSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 numeric, value3 numeric) → numericSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 real, value3 real) → realSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 text, value3 text) → textSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 time without time zone, value3 time without time zone) → time without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql."smallint", value2 timestamp without time zone, value3 timestamp without time zone) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 bigint, value3 bigint) → bigintSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 character varying, value3 character varying) → character varyingSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 character, value3 character) → characterSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 date, value3 date) → dateSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 double precision, value3 double precision) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 integer, value3 integer) → integerSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 mysql."real", value3 mysql."real") → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 mysql."smallint", value3 mysql."smallint") → mysql."smallint"Select the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 mysql.datetime, value3 mysql.datetime) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 mysql.double, value3 mysql.double) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 mysql.mediumint, value3 mysql.mediumint) → mysql.mediumintSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 mysql.tinyint, value3 mysql.tinyint) → mysql.tinyintSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 numeric, value3 numeric) → numericSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 real, value3 real) → realSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 text, value3 text) → textSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 time without time zone, value3 time without time zone) → time without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.double, value2 timestamp without time zone, value3 timestamp without time zone) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 bigint, value3 bigint) → bigintSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 character varying, value3 character varying) → character varyingSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 character, value3 character) → characterSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 date, value3 date) → dateSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 double precision, value3 double precision) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 integer, value3 integer) → integerSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 mysql."real", value3 mysql."real") → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 mysql."smallint", value3 mysql."smallint") → mysql."smallint"Select the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 mysql.datetime, value3 mysql.datetime) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 mysql.double, value3 mysql.double) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 mysql.mediumint, value3 mysql.mediumint) → mysql.mediumintSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 mysql.tinyint, value3 mysql.tinyint) → mysql.tinyintSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 numeric, value3 numeric) → numericSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 real, value3 real) → realSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 text, value3 text) → textSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 time without time zone, value3 time without time zone) → time without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition mysql.tinyint, value2 timestamp without time zone, value3 timestamp without time zone) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 bigint, value3 bigint) → bigintSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 character varying, value3 character varying) → character varyingSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 character, value3 character) → characterSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 date, value3 date) → dateSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 double precision, value3 double precision) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 integer, value3 integer) → integerSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 mysql."real", value3 mysql."real") → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 mysql."smallint", value3 mysql."smallint") → mysql."smallint"Select the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 mysql.datetime, value3 mysql.datetime) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 mysql.double, value3 mysql.double) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 mysql.mediumint, value3 mysql.mediumint) → mysql.mediumintSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 mysql.tinyint, value3 mysql.tinyint) → mysql.tinyintSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 numeric, value3 numeric) → numericSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 real, value3 real) → realSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 text, value3 text) → textSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 time without time zone, value3 time without time zone) → time without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition numeric, value2 timestamp without time zone, value3 timestamp without time zone) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 bigint, value3 bigint) → bigintSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 character varying, value3 character varying) → character varyingSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 character, value3 character) → characterSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 date, value3 date) → dateSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 double precision, value3 double precision) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 integer, value3 integer) → integerSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 mysql."real", value3 mysql."real") → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 mysql."smallint", value3 mysql."smallint") → mysql."smallint"Select the second or third argument according to the condition.SQL
mysql.if(condition text, value2 mysql.datetime, value3 mysql.datetime) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 mysql.double, value3 mysql.double) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 mysql.mediumint, value3 mysql.mediumint) → mysql.mediumintSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 mysql.tinyint, value3 mysql.tinyint) → mysql.tinyintSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 numeric, value3 numeric) → numericSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 real, value3 real) → realSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 text, value3 text) → textSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 time without time zone, value3 time without time zone) → time without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition text, value2 timestamp without time zone, value3 timestamp without time zone) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 bigint, value3 bigint) → bigintSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 character varying, value3 character varying) → character varyingSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 character, value3 character) → characterSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 date, value3 date) → dateSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 double precision, value3 double precision) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 integer, value3 integer) → integerSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 mysql."real", value3 mysql."real") → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 mysql."smallint", value3 mysql."smallint") → mysql."smallint"Select the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 mysql.datetime, value3 mysql.datetime) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 mysql.double, value3 mysql.double) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 mysql.mediumint, value3 mysql.mediumint) → mysql.mediumintSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 mysql.tinyint, value3 mysql.tinyint) → mysql.tinyintSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 numeric, value3 numeric) → numericSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 real, value3 real) → realSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 text, value3 text) → textSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 time without time zone, value3 time without time zone) → time without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition time without time zone, value2 timestamp without time zone, value3 timestamp without time zone) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 bigint, value3 bigint) → bigintSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 character varying, value3 character varying) → character varyingSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 character, value3 character) → characterSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 date, value3 date) → dateSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 double precision, value3 double precision) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 integer, value3 integer) → integerSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 mysql."real", value3 mysql."real") → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 mysql."smallint", value3 mysql."smallint") → mysql."smallint"Select the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 mysql.datetime, value3 mysql.datetime) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 mysql.double, value3 mysql.double) → double precisionSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 mysql.mediumint, value3 mysql.mediumint) → mysql.mediumintSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 mysql.tinyint, value3 mysql.tinyint) → mysql.tinyintSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 numeric, value3 numeric) → numericSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 real, value3 real) → realSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 text, value3 text) → textSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 time without time zone, value3 time without time zone) → time without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(condition timestamp without time zone, value2 timestamp without time zone, value3 timestamp without time zone) → timestamp without time zoneSelect the second or third argument according to the condition.SQL
mysql.if(date, boolean, boolean) → booleanSelect the second or third argument according to the condition.Generated definition
mysql.if(date, character varying, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(date, character varying, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(date, character, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(date, character, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(date, text, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(date, text, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(double precision, boolean, boolean) → booleanSelect the second or third argument according to the condition.Generated definition
mysql.if(double precision, character varying, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(double precision, character varying, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(double precision, character, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(double precision, character, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(double precision, text, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(double precision, text, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(integer, boolean, boolean) → booleanSelect the second or third argument according to the condition.Generated definition
mysql.if(integer, character varying, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(integer, character varying, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(integer, character, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(integer, character, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(integer, text, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(integer, text, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql."smallint", boolean, boolean) → booleanSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql."smallint", character varying, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql."smallint", character varying, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql."smallint", character, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql."smallint", character, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql."smallint", text, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql."smallint", text, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql.double, boolean, boolean) → booleanSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql.double, character varying, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql.double, character varying, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql.double, character, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql.double, character, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql.double, text, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql.double, text, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql.tinyint, boolean, boolean) → booleanSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql.tinyint, character varying, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql.tinyint, character varying, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql.tinyint, character, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql.tinyint, character, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql.tinyint, text, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(mysql.tinyint, text, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(numeric, boolean, boolean) → booleanSelect the second or third argument according to the condition.Generated definition
mysql.if(numeric, character varying, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(numeric, character varying, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(numeric, character, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(numeric, character, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(numeric, text, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(numeric, text, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(text, boolean, boolean) → booleanSelect the second or third argument according to the condition.Generated definition
mysql.if(text, character varying, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(text, character varying, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(text, character, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(text, character, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(text, text, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(text, text, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(time without time zone, boolean, boolean) → booleanSelect the second or third argument according to the condition.Generated definition
mysql.if(time without time zone, character varying, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(time without time zone, character varying, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(time without time zone, character, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(time without time zone, character, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(time without time zone, text, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(time without time zone, text, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(timestamp without time zone, boolean, boolean) → booleanSelect the second or third argument according to the condition.Generated definition
mysql.if(timestamp without time zone, character varying, character) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(timestamp without time zone, character varying, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(timestamp without time zone, character, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(timestamp without time zone, character, text) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(timestamp without time zone, text, character varying) → character varyingSelect the second or third argument according to the condition.Generated definition
mysql.if(timestamp without time zone, text, character) → character varyingSelect the second or third argument according to the condition.Generated definition

ifnull

SignaturePurposeSource definition
mysql.ifnull(bigint, bigint) → bigintReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(bigint, character varying) → character varyingReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(boolean, boolean) → booleanReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(bytea, bytea) → byteaReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(character varying, bigint) → character varyingReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(character varying, character varying) → character varyingReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(character varying, character) → character varyingReturn the first value when present, otherwise the fallback.Generated definition
mysql.ifnull(character varying, text) → character varyingReturn the first value when present, otherwise the fallback.Generated definition
mysql.ifnull(character, character varying) → character varyingReturn the first value when present, otherwise the fallback.Generated definition
mysql.ifnull(character, character) → characterReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(character, text) → character varyingReturn the first value when present, otherwise the fallback.Generated definition
mysql.ifnull(date, date) → dateReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(double precision, double precision) → double precisionReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(integer, integer) → integerReturn 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.doubleReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(mysql.tinyint, mysql.tinyint) → mysql.tinyintReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(numeric, numeric) → numericReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(p1 bigint, p2 text) → textReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(p1 boolean, p2 text) → textReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(p1 date, p2 text) → timestamp without time zoneReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(p1 integer, p2 text) → textReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(p1 mysql."smallint", p2 text) → textReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(p1 numeric, p2 text) → textReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(p1 time without time zone, p2 text) → timestamp without time zoneReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(p1 timestamp with time zone, p2 text) → timestamp with time zoneReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(p1 timestamp without time zone, p2 text) → timestamp without time zoneReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(text, bigint) → textReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(text, character varying) → character varyingReturn the first value when present, otherwise the fallback.Generated definition
mysql.ifnull(text, character) → character varyingReturn the first value when present, otherwise the fallback.Generated definition
mysql.ifnull(text, text) → textReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(time without time zone, time without time zone) → time without time zoneReturn the first value when present, otherwise the fallback.SQL
mysql.ifnull(timestamp without time zone, timestamp without time zone) → timestamp without time zoneReturn the first value when present, otherwise the fallback.SQL

isnull

SignaturePurposeSource definition
mysql."isnull"(bigint) → integerTest whether the value is NULL.SQL
mysql."isnull"(boolean) → booleanTest whether the value is NULL.SQL
mysql."isnull"(mysql."real") → integerTest whether the value is NULL.SQL
mysql."isnull"(mysql."smallint") → integerTest whether the value is NULL.SQL
mysql."isnull"(smallint) → booleanTest whether the value is NULL.SQL
mysql."isnull"(val character varying) → integerTest whether the value is NULL.SQL
mysql."isnull"(val character) → integerTest whether the value is NULL.SQL
mysql."isnull"(val date) → integerTest whether the value is NULL.SQL
mysql."isnull"(val integer) → integerTest whether the value is NULL.SQL
mysql."isnull"(val json) → integerTest whether the value is NULL.SQL
mysql."isnull"(val numeric) → integerTest whether the value is NULL.SQL
mysql."isnull"(val text) → integerTest whether the value is NULL.SQL
mysql."isnull"(val time without time zone) → integerTest whether the value is NULL.SQL
mysql."isnull"(val timestamp without time zone) → integerTest whether the value is NULL.SQL

5 - Session functions

Connection identity, selected database, named locks and statement state.

Connection identity, selected database, named locks and statement state.

connection_id

SignaturePurposeSource definition
mysql.connection_id() → bigintReturn the PostgreSQL backend PID for this connection.SQL

current_user

SignaturePurposeSource definition
mysql."current_user"() → textEffective PostgreSQL role formatted as role@%.SQL · C

database

SignaturePurposeSource definition
mysql.database() → textReturn the MySQL database selected in this session.SQL · C

found_rows

SignaturePurposeSource definition
mysql.found_rows() → bigintRead the session’s found-row count.SQL · C

get_lock

SignaturePurposeSource definition
mysql.get_lock("any", "any") → bigintAcquire a named session lock with a timeout.SQL · C

is_free_lock

SignaturePurposeSource definition
mysql.is_free_lock("any") → bigintCheck whether a named lock is available.SQL · C

is_used_lock

SignaturePurposeSource definition
mysql.is_used_lock("any") → bigintLook up the holder of a named lock.SQL · C

last_insert_id

SignaturePurposeSource definition
mysql.last_insert_id() → bigintRead the session’s last generated insert ID.SQL · C

release_all_locks

SignaturePurposeSource definition
mysql.release_all_locks() → bigintRelease all named locks held by this session.SQL · C

release_lock

SignaturePurposeSource definition
mysql.release_lock("any") → bigintRelease a named session lock.SQL · C

row_count

SignaturePurposeSource definition
mysql.row_count() → bigintRead the affected-row count for the previous statement.SQL · C

schema

SignaturePurposeSource definition
mysql.schema() → textReturn the MySQL database selected in this session.SQL · C

session_user

SignaturePurposeSource definition
mysql."session_user"() → textSession role and client host.SQL · C

sleep

SignaturePurposeSource definition
mysql.sleep(seconds numeric) → character varyingWait for the requested number of seconds.SQL

user

SignaturePurposeSource definition
mysql."user"() → textReturn PostgreSQL current_user as text.SQL

uuid

SignaturePurposeSource definition
mysql.uuid() → textGenerate a UUID.SQL

uuid_short

SignaturePurposeSource definition
mysql.uuid_short() → textGenerate a short MySQL-style identifier.SQL · C

version

SignaturePurposeSource definition
mysql.version() → textReturn the advertised MySQL server version.SQL · C

6 - Type conversion helpers

Internal routines used by casts, coercion and expression rewriting.

Internal routines used by casts, coercion and expression rewriting.

B

SignaturePurposeSource definition
mysql.binary_n(bytea, integer, boolean) → mysql.binary_nConvert bytea to mysql.binary_n.Generated definition · C
mysql.binary_n(character varying, integer, boolean) → mysql.binary_nConvert character varying to mysql.binary_n.Generated definition · C
mysql.binary_n(character, integer, boolean) → mysql.binary_nConvert character to mysql.binary_n.Generated definition · C
mysql.binary_n(mysql.binary_n, integer, boolean) → mysql.binary_nConvert mysql.binary_n to mysql.binary_n.Generated definition · C
mysql.binary_n(mysql.hexlit, integer, boolean) → mysql.binary_nConvert mysql.hexlit to mysql.binary_n.Generated definition · C
mysql.binary_n(mysql.varbinary_n, integer, boolean) → mysql.binary_nConvert mysql.varbinary_n to mysql.binary_n.Generated definition · C
mysql.binary_n(text, integer, boolean) → mysql.binary_nConvert text to mysql.binary_n.Generated definition · C
mysql.binary_n_bpchar(mysql.binary_n) → characterConvert mysql.binary_n to character.Generated definition · C
mysql.binary_n_text(mysql.binary_n) → textConvert mysql.binary_n to text.Generated definition · C
mysql.binary_n_varchar(mysql.binary_n) → character varyingConvert mysql.binary_n to character varying.Generated definition · C
mysql.bit_to_text(bit) → textConvert bit to text.SQL · C
mysql.bytea2bit(bytea) → bitConvert bytea to bit.SQL · C
mysql.bytea2bool(bytea) → booleanConvert bytea to boolean.SQL · C
mysql.bytea2bpchar(bytea) → characterConvert bytea to character.SQL · C
mysql.bytea2date(bytea) → dateConvert bytea to date.SQL · C
mysql.bytea2float4(bytea) → realConvert bytea to real.SQL · C
mysql.bytea2float8(bytea) → double precisionConvert bytea to double precision.SQL · C
mysql.bytea2int2(bytea) → smallintConvert bytea to smallint.SQL · C
mysql.bytea2int4(bytea) → integerConvert bytea to integer.SQL · C
mysql.bytea2int8(bytea) → bigintConvert bytea to bigint.SQL · C
mysql.bytea2numeric(bytea) → numericConvert bytea to numeric.SQL · C
mysql.bytea2text(bytea) → textConvert bytea to text.SQL · C
mysql.bytea2time(bytea) → time without time zoneConvert bytea to time without time zone.SQL · C
mysql.bytea2timestamp(bytea) → timestamp without time zoneConvert bytea to timestamp without time zone.SQL · C
mysql.bytea2timestamptz(bytea) → timestamp with time zoneConvert bytea to timestamp with time zone.SQL · C
mysql.bytea2timetz(bytea) → time with time zoneConvert bytea to time with time zone.SQL · C
mysql.bytea2varbit(bytea) → bit varyingConvert bytea to bit varying.SQL · C
mysql.bytea2varchar(bytea) → character varyingConvert bytea to character varying.SQL · C

C

SignaturePurposeSource definition
mysql.cast_bigint_to_boolean(bigint) → booleanConvert bigint to boolean.SQL
mysql.cast_bigint_to_varbit(bigint) → bit varyingConvert bigint to bit varying.SQL
mysql.cast_bit_to_boolean(bit) → booleanConvert bit to boolean.SQL
mysql.cast_bit_to_bytea(bit) → byteaConvert bit to bytea.SQL · C
mysql.cast_bool_to_varbit(boolean) → bit varyingConvert boolean to bit varying.SQL
mysql.cast_boolean_to_bigint(boolean) → bigintConvert boolean to bigint.SQL
mysql.cast_boolean_to_binary_n(boolean) → mysql.binary_nConvert boolean to mysql.binary_n.SQL · C
mysql.cast_boolean_to_bytea(boolean) → byteaConvert boolean to bytea.SQL · C
mysql.cast_boolean_to_float4(boolean) → realConvert boolean to real.SQL · C
mysql.cast_boolean_to_float8(boolean) → double precisionConvert boolean to double precision.SQL · C
mysql.cast_boolean_to_numeric(boolean) → numericConvert boolean to numeric.SQL · C
mysql.cast_boolean_to_tinyint(boolean) → smallintConvert boolean to smallint.SQL
mysql.cast_boolean_to_varbinary_n(boolean) → mysql.varbinary_nConvert boolean to mysql.varbinary_n.SQL · C
mysql.cast_char_to_bigint(character) → bigintConvert character to bigint.SQL
mysql.cast_char_to_int(character) → integerConvert character to integer.SQL
mysql.cast_char_to_tinyint(character) → smallintConvert character to smallint.SQL
mysql.cast_int_to_varbit(integer) → bit varyingConvert integer to bit varying.SQL
mysql.cast_numeric_source(anyelement, integer) → anyelementConvert anyelement to anyelement.SQL · C
mysql.cast_numeric_source(bytea, integer) → numericConvert bytea to numeric.Generated definition · C
mysql.cast_numeric_source(mysql.binary_n, integer) → numericConvert mysql.binary_n to numeric.Generated definition · C
mysql.cast_numeric_source(mysql.hexlit, integer) → mysql.hexlitConvert mysql.hexlit to mysql.hexlit.SQL · C
mysql.cast_numeric_source(mysql.varbinary_n, integer) → numericConvert mysql.varbinary_n to numeric.Generated definition · C
mysql.cast_numeric_source(text, integer) → textConvert text to text.SQL · C
mysql.cast_smallint_to_boolean(smallint) → booleanConvert smallint to boolean.SQL
mysql.cast_smallint_to_varbit(smallint) → bit varyingConvert smallint to bit varying.SQL
mysql.cast_text_to_bigint(text) → bigintConvert text to bigint.SQL
mysql.cast_text_to_date(text) → dateConvert text to date.SQL
mysql.cast_text_to_int(text) → integerConvert text to integer.SQL
mysql.cast_text_to_time(text) → time without time zoneConvert text to time without time zone.SQL
mysql.cast_text_to_timestamp(text) → timestamp without time zoneConvert text to timestamp without time zone.SQL
mysql.cast_text_to_timestamptz(text) → timestamp with time zoneConvert text to timestamp with time zone.SQL
mysql.cast_text_to_tinyint(text) → smallintConvert text to smallint.SQL
mysql.cast_varbit_to_bigint(bit varying) → bigintConvert bit varying to bigint.SQL
mysql.cast_varbit_to_boolean(bit varying) → booleanConvert bit varying to boolean.SQL
mysql.cast_varbit_to_int(bit varying) → integerConvert bit varying to integer.SQL
mysql.cast_varbit_to_smallint(bit varying) → smallintConvert bit varying to smallint.SQL
mysql.cast_varchar_to_bigint(character varying) → bigintConvert character varying to bigint.SQL
mysql.cast_varchar_to_int(character varying) → integerConvert character varying to integer.SQL
mysql.cast_varchar_to_tinyint(character varying) → smallintConvert character varying to smallint.SQL
mysql.convert_bigint_to_varbit(bigint) → bit varyingConvert bigint to bit varying.SQL · C
mysql.convert_char_to_float8("char") → double precisionConvert “char” to double precision.SQL
mysql.convert_date_to_float8(date) → double precisionConvert date to double precision.SQL · C
mysql.convert_digit_text_to_text_for_mysql(text) → textConvert text to text.SQL · C
mysql.convert_int_to_varbit(integer) → bit varyingConvert integer to bit varying.SQL · C
mysql.convert_smallint_to_varbit(smallint) → bit varyingConvert smallint to bit varying.SQL · C
mysql.convert_text_hex_to_text_varbit(text) → textConvert text to text.SQL · C
mysql.convert_text_to_bigint_for_mysql(text) → bigintConvert text to bigint.SQL · C
mysql.convert_text_to_digit_text_for_mysql(text) → textConvert text to text.SQL · C
mysql.convert_text_to_float8(text) → double precisionConvert text to double precision.SQL · C
mysql.convert_text_to_int8(text) → bigintConvert text to bigint.SQL · C
mysql.convert_text_varbit_to_bigint(text) → bigintConvert text to bigint.SQL · C
mysql.convert_time_text_to_numeric_for_mysql(text) → double precisionConvert text to double precision.SQL · C
mysql.convert_time_to_float8(time without time zone) → double precisionConvert time without time zone to double precision.SQL · C
mysql.convert_timestamp_to_float8(timestamp without time zone) → double precisionConvert timestamp without time zone to double precision.SQL · C
mysql.convert_varbit_to_bigint(bit varying) → bigintConvert bit varying to bigint.SQL · C
mysql.convert_varbit_to_int(bit varying) → integerConvert bit varying to integer.SQL · C
mysql.convert_varbit_to_smallint(bit varying) → smallintConvert bit varying to smallint.SQL · C
mysql.convert_varchar_to_float8(character varying) → double precisionConvert character varying to double precision.SQL

H

SignaturePurposeSource definition
mysql.hexlit_bit(mysql.hexlit, integer, boolean) → bitConvert mysql.hexlit to bit.SQL · C
mysql.hexlit_bool(mysql.hexlit) → booleanConvert mysql.hexlit to boolean.SQL · C
mysql.hexlit_bpchar(mysql.hexlit) → characterConvert mysql.hexlit to character.SQL · C
mysql.hexlit_float4(mysql.hexlit) → realConvert mysql.hexlit to real.SQL
mysql.hexlit_float8(mysql.hexlit) → double precisionConvert mysql.hexlit to double precision.SQL
mysql.hexlit_int2(mysql.hexlit) → smallintConvert mysql.hexlit to smallint.SQL
mysql.hexlit_int4(mysql.hexlit) → integerConvert mysql.hexlit to integer.SQL
mysql.hexlit_int8(mysql.hexlit) → bigintConvert mysql.hexlit to bigint.SQL · C
mysql.hexlit_numeric(mysql.hexlit) → numericConvert mysql.hexlit to numeric.SQL · C
mysql.hexlit_text(mysql.hexlit) → textConvert mysql.hexlit to text.SQL · C
mysql.hexlit_varbit(mysql.hexlit, integer, boolean) → bit varyingConvert mysql.hexlit to bit varying.SQL · C
mysql.hexlit_varchar(mysql.hexlit) → character varyingConvert mysql.hexlit to character varying.SQL · C

I

SignaturePurposeSource definition
mysql."interval"(text, integer) → intervalConvert text to interval.SQL · C

S

SignaturePurposeSource definition
mysql.str_to_double(text) → double precisionParse a string as a floating-point value.SQL

T

SignaturePurposeSource definition
mysql.time_to_timestamp(time without time zone) → timestamp without time zoneConvert time without time zone to timestamp without time zone.SQL

V

7 - Comparison operator functions

Internal entry points behind equality and ordering comparisons.

Internal entry points behind equality and ordering comparisons.

A

B

SignaturePurposeSource definition
mysql.bigintbgeqtext(bigint, text) → booleanImplements >= (greater than or equal).SQL
mysql.bigintbgtext(bigint, text) → booleanImplements > (greater than).SQL
mysql.bigintleeqtext(bigint, text) → booleanImplements <= (less than or equal).SQL
mysql.bigintletext(bigint, text) → booleanImplements < (less than).SQL
mysql.binary_n_eq(mysql.binary_n, mysql.binary_n) → booleanImplements = (equal).Generated definition
mysql.binary_n_ge(mysql.binary_n, mysql.binary_n) → booleanImplements >= (greater than or equal).Generated definition
mysql.binary_n_gt(mysql.binary_n, mysql.binary_n) → booleanImplements > (greater than).Generated definition
mysql.binary_n_le(mysql.binary_n, mysql.binary_n) → booleanImplements <= (less than or equal).Generated definition
mysql.binary_n_lt(mysql.binary_n, mysql.binary_n) → booleanImplements < (less than).Generated definition
mysql.binary_n_ne(mysql.binary_n, mysql.binary_n) → booleanImplements <> (not equal).Generated definition
mysql.bit_eq_boolean(bit, boolean) → booleanImplements = (equal).SQL
mysql.boolean_eq_bit(boolean, bit) → booleanImplements = (equal).SQL
mysql.boolean_eq_varbit(boolean, bit varying) → booleanImplements = (equal).SQL
mysql.booleqint2(boolean, smallint) → booleanImplements = (equal).SQL
mysql.booleqint4(boolean, integer) → booleanImplements = (equal).SQL
mysql.booleqint8(boolean, bigint) → booleanImplements = (equal).SQL
mysql.boolneint2(boolean, smallint) → booleanImplements <> (not equal).SQL
mysql.boolneint4(boolean, integer) → booleanImplements <> (not equal).SQL
mysql.boolneint8(boolean, bigint) → booleanImplements <> (not equal).SQL
mysql.bytea_eq_hexlit(bytea, mysql.hexlit) → booleanImplements = (equal).Generated definition
mysql.bytea_ge_hexlit(bytea, mysql.hexlit) → booleanImplements >= (greater than or equal).Generated definition
mysql.bytea_gt_hexlit(bytea, mysql.hexlit) → booleanImplements > (greater than).Generated definition
mysql.bytea_le_hexlit(bytea, mysql.hexlit) → booleanImplements <= (less than or equal).Generated definition
mysql.bytea_lt_hexlit(bytea, mysql.hexlit) → booleanImplements < (less than).Generated definition
mysql.bytea_ne_hexlit(bytea, mysql.hexlit) → booleanImplements <> (not equal).Generated definition
mysql.bytea_nseq_hexlit(bytea, mysql.hexlit) → booleanImplements <=> (null-safe equality).Generated definition
mysql.byteaeqanycompatible(bytea, anycompatible) → booleanImplements = (equal).SQL · C
mysql.byteageanycompatible(bytea, anycompatible) → booleanImplements >= (greater than or equal).SQL · C
mysql.byteagebytea(bytea, bytea) → booleanImplements >= (greater than or equal).SQL · C
mysql.byteagtanycompatible(bytea, anycompatible) → booleanImplements > (greater than).SQL · C
mysql.byteagtbytea(bytea, bytea) → booleanImplements > (greater than).SQL · C
mysql.bytealeanycompatible(bytea, anycompatible) → booleanImplements <= (less than or equal).SQL · C
mysql.bytealebytea(bytea, bytea) → booleanImplements <= (less than or equal).SQL · C
mysql.bytealtanycompatible(bytea, anycompatible) → booleanImplements < (less than).SQL · C
mysql.bytealtbytea(bytea, bytea) → booleanImplements < (less than).SQL · C
mysql.byteaneanycompatible(bytea, anycompatible) → booleanImplements <> (not equal).SQL · C

C

SignaturePurposeSource definition
mysql.char_eq_char_for_date_format(character, character) → booleanImplements =# (compare format-specifier characters).SQL · C

D

SignaturePurposeSource definition
mysql.date_eq_text(date, text) → booleanImplements = (equal).SQL
mysql.date_ge_text(date, text) → booleanImplements >= (greater than or equal).SQL
mysql.date_gt_text(date, text) → booleanImplements > (greater than).SQL
mysql.date_le_text(date, text) → booleanImplements <= (less than or equal).SQL
mysql.date_lt_text(date, text) → booleanImplements < (less than).SQL
mysql.date_ne_text(date, text) → booleanImplements <> (not equal).SQL
mysql.dateeqtext(date, text) → booleanTest equality after converting the operands.SQL
mysql.datenetext(date, text) → booleanTest inequality after converting the operands.SQL

F

H

SignaturePurposeSource definition
mysql.hexlit_eq(mysql.hexlit, mysql.hexlit) → booleanImplements = (equal).Generated definition
mysql.hexlit_eq_bytea(mysql.hexlit, bytea) → booleanImplements = (equal).Generated definition
mysql.hexlit_eq_float8(mysql.hexlit, double precision) → booleanImplements = (equal).Generated definition
mysql.hexlit_eq_int2(mysql.hexlit, smallint) → booleanImplements = (equal).Generated definition
mysql.hexlit_eq_int4(mysql.hexlit, integer) → booleanImplements = (equal).Generated definition
mysql.hexlit_eq_int8(mysql.hexlit, bigint) → booleanImplements = (equal).Generated definition
mysql.hexlit_eq_numeric(mysql.hexlit, numeric) → booleanImplements = (equal).Generated definition
mysql.hexlit_eq_text(mysql.hexlit, text) → booleanImplements = (equal).Generated definition
mysql.hexlit_eq_varbit(mysql.hexlit, bit varying) → booleanImplements = (equal).Generated definition
mysql.hexlit_ge(mysql.hexlit, mysql.hexlit) → booleanImplements >= (greater than or equal).Generated definition
mysql.hexlit_ge_bytea(mysql.hexlit, bytea) → booleanImplements >= (greater than or equal).Generated definition
mysql.hexlit_ge_float8(mysql.hexlit, double precision) → booleanImplements >= (greater than or equal).Generated definition
mysql.hexlit_ge_int2(mysql.hexlit, smallint) → booleanImplements >= (greater than or equal).Generated definition
mysql.hexlit_ge_int4(mysql.hexlit, integer) → booleanImplements >= (greater than or equal).Generated definition
mysql.hexlit_ge_int8(mysql.hexlit, bigint) → booleanImplements >= (greater than or equal).Generated definition
mysql.hexlit_ge_numeric(mysql.hexlit, numeric) → booleanImplements >= (greater than or equal).Generated definition
mysql.hexlit_ge_text(mysql.hexlit, text) → booleanImplements >= (greater than or equal).Generated definition
mysql.hexlit_ge_varbit(mysql.hexlit, bit varying) → booleanImplements >= (greater than or equal).Generated definition
mysql.hexlit_gt(mysql.hexlit, mysql.hexlit) → booleanImplements > (greater than).Generated definition
mysql.hexlit_gt_bytea(mysql.hexlit, bytea) → booleanImplements > (greater than).Generated definition
mysql.hexlit_gt_float8(mysql.hexlit, double precision) → booleanImplements > (greater than).Generated definition
mysql.hexlit_gt_int2(mysql.hexlit, smallint) → booleanImplements > (greater than).Generated definition
mysql.hexlit_gt_int4(mysql.hexlit, integer) → booleanImplements > (greater than).Generated definition
mysql.hexlit_gt_int8(mysql.hexlit, bigint) → booleanImplements > (greater than).Generated definition
mysql.hexlit_gt_numeric(mysql.hexlit, numeric) → booleanImplements > (greater than).Generated definition
mysql.hexlit_gt_text(mysql.hexlit, text) → booleanImplements > (greater than).Generated definition
mysql.hexlit_gt_varbit(mysql.hexlit, bit varying) → booleanImplements > (greater than).Generated definition
mysql.hexlit_le(mysql.hexlit, mysql.hexlit) → booleanImplements <= (less than or equal).Generated definition
mysql.hexlit_le_bytea(mysql.hexlit, bytea) → booleanImplements <= (less than or equal).Generated definition
mysql.hexlit_le_float8(mysql.hexlit, double precision) → booleanImplements <= (less than or equal).Generated definition
mysql.hexlit_le_int2(mysql.hexlit, smallint) → booleanImplements <= (less than or equal).Generated definition
mysql.hexlit_le_int4(mysql.hexlit, integer) → booleanImplements <= (less than or equal).Generated definition
mysql.hexlit_le_int8(mysql.hexlit, bigint) → booleanImplements <= (less than or equal).Generated definition
mysql.hexlit_le_numeric(mysql.hexlit, numeric) → booleanImplements <= (less than or equal).Generated definition
mysql.hexlit_le_text(mysql.hexlit, text) → booleanImplements <= (less than or equal).Generated definition
mysql.hexlit_le_varbit(mysql.hexlit, bit varying) → booleanImplements <= (less than or equal).Generated definition
mysql.hexlit_lt(mysql.hexlit, mysql.hexlit) → booleanImplements < (less than).Generated definition
mysql.hexlit_lt_bytea(mysql.hexlit, bytea) → booleanImplements < (less than).Generated definition
mysql.hexlit_lt_float8(mysql.hexlit, double precision) → booleanImplements < (less than).Generated definition
mysql.hexlit_lt_int2(mysql.hexlit, smallint) → booleanImplements < (less than).Generated definition
mysql.hexlit_lt_int4(mysql.hexlit, integer) → booleanImplements < (less than).Generated definition
mysql.hexlit_lt_int8(mysql.hexlit, bigint) → booleanImplements < (less than).Generated definition
mysql.hexlit_lt_numeric(mysql.hexlit, numeric) → booleanImplements < (less than).Generated definition
mysql.hexlit_lt_text(mysql.hexlit, text) → booleanImplements < (less than).Generated definition
mysql.hexlit_lt_varbit(mysql.hexlit, bit varying) → booleanImplements < (less than).Generated definition
mysql.hexlit_ne(mysql.hexlit, mysql.hexlit) → booleanImplements <> (not equal).Generated definition
mysql.hexlit_ne_bytea(mysql.hexlit, bytea) → booleanImplements <> (not equal).Generated definition
mysql.hexlit_ne_float8(mysql.hexlit, double precision) → booleanImplements <> (not equal).Generated definition
mysql.hexlit_ne_int2(mysql.hexlit, smallint) → booleanImplements <> (not equal).Generated definition
mysql.hexlit_ne_int4(mysql.hexlit, integer) → booleanImplements <> (not equal).Generated definition
mysql.hexlit_ne_int8(mysql.hexlit, bigint) → booleanImplements <> (not equal).Generated definition
mysql.hexlit_ne_numeric(mysql.hexlit, numeric) → booleanImplements <> (not equal).Generated definition
mysql.hexlit_ne_text(mysql.hexlit, text) → booleanImplements <> (not equal).Generated definition
mysql.hexlit_ne_varbit(mysql.hexlit, bit varying) → booleanImplements <> (not equal).Generated definition
mysql.hexlit_nseq_bytea(mysql.hexlit, bytea) → booleanImplements <=> (null-safe equality).Generated definition
mysql.hexlit_nseq_float8(mysql.hexlit, double precision) → booleanImplements <=> (null-safe equality).Generated definition
mysql.hexlit_nseq_hexlit(mysql.hexlit, mysql.hexlit) → booleanImplements <=> (null-safe equality).Generated definition
mysql.hexlit_nseq_int2(mysql.hexlit, smallint) → booleanImplements <=> (null-safe equality).Generated definition
mysql.hexlit_nseq_int4(mysql.hexlit, integer) → booleanImplements <=> (null-safe equality).Generated definition
mysql.hexlit_nseq_int8(mysql.hexlit, bigint) → booleanImplements <=> (null-safe equality).Generated definition
mysql.hexlit_nseq_numeric(mysql.hexlit, numeric) → booleanImplements <=> (null-safe equality).Generated definition
mysql.hexlit_nseq_text(mysql.hexlit, text) → booleanImplements <=> (null-safe equality).Generated definition
mysql.hexlit_nseq_varbit(mysql.hexlit, bit varying) → booleanImplements <=> (null-safe equality).Generated definition

I

SignaturePurposeSource definition
mysql.int2_eq_hexlit(smallint, mysql.hexlit) → booleanImplements = (equal).Generated definition
mysql.int2_eq_varbit(smallint, bit varying) → booleanImplements = (equal).SQL
mysql.int2_ge_hexlit(smallint, mysql.hexlit) → booleanImplements >= (greater than or equal).Generated definition
mysql.int2_gt_hexlit(smallint, mysql.hexlit) → booleanImplements > (greater than).Generated definition
mysql.int2_le_hexlit(smallint, mysql.hexlit) → booleanImplements <= (less than or equal).Generated definition
mysql.int2_lt_hexlit(smallint, mysql.hexlit) → booleanImplements < (less than).Generated definition
mysql.int2_ne_hexlit(smallint, mysql.hexlit) → booleanImplements <> (not equal).Generated definition
mysql.int2_nseq_hexlit(smallint, mysql.hexlit) → booleanImplements <=> (null-safe equality).Generated definition
mysql.int2eqbool(smallint, boolean) → booleanImplements = (equal).SQL
mysql.int2nebool(smallint, boolean) → booleanImplements <> (not equal).SQL
mysql.int4_eq_hexlit(integer, mysql.hexlit) → booleanImplements = (equal).Generated definition
mysql.int4_eq_varbit(integer, bit varying) → booleanImplements = (equal).SQL
mysql.int4_ge_hexlit(integer, mysql.hexlit) → booleanImplements >= (greater than or equal).Generated definition
mysql.int4_gt_hexlit(integer, mysql.hexlit) → booleanImplements > (greater than).Generated definition
mysql.int4_le_hexlit(integer, mysql.hexlit) → booleanImplements <= (less than or equal).Generated definition
mysql.int4_lt_hexlit(integer, mysql.hexlit) → booleanImplements < (less than).Generated definition
mysql.int4_ne_hexlit(integer, mysql.hexlit) → booleanImplements <> (not equal).Generated definition
mysql.int4_nseq_hexlit(integer, mysql.hexlit) → booleanImplements <=> (null-safe equality).Generated definition
mysql.int4eqbool(integer, boolean) → booleanImplements = (equal).SQL
mysql.int4nebool(integer, boolean) → booleanImplements <> (not equal).SQL
mysql.int8_eq_hexlit(bigint, mysql.hexlit) → booleanImplements = (equal).Generated definition
mysql.int8_eq_varbit(bigint, bit varying) → booleanImplements = (equal).SQL
mysql.int8_ge_hexlit(bigint, mysql.hexlit) → booleanImplements >= (greater than or equal).Generated definition
mysql.int8_gt_hexlit(bigint, mysql.hexlit) → booleanImplements > (greater than).Generated definition
mysql.int8_le_hexlit(bigint, mysql.hexlit) → booleanImplements <= (less than or equal).Generated definition
mysql.int8_lt_hexlit(bigint, mysql.hexlit) → booleanImplements < (less than).Generated definition
mysql.int8_ne_hexlit(bigint, mysql.hexlit) → booleanImplements <> (not equal).Generated definition
mysql.int8_nseq_hexlit(bigint, mysql.hexlit) → booleanImplements <=> (null-safe equality).Generated definition
mysql.int8eqbool(bigint, boolean) → booleanImplements = (equal).SQL
mysql.int8nebool(bigint, boolean) → booleanImplements <> (not equal).SQL
mysql.integerbgeqtext(integer, text) → booleanImplements >= (greater than or equal).SQL
mysql.integerbgtext(integer, text) → booleanImplements > (greater than).SQL
mysql.integerleeqtext(integer, text) → booleanImplements <= (less than or equal).SQL
mysql.integerletext(integer, text) → booleanImplements < (less than).SQL
mysql.is_and_eq(arg1 bigint, arg2 bigint) → booleanImplements <=> (null-safe equality).SQL
mysql.is_and_eq(arg1 character varying, arg2 character varying) → booleanImplements <=> (null-safe equality).SQL
mysql.is_and_eq(arg1 character, arg2 character) → booleanImplements <=> (null-safe equality).SQL
mysql.is_and_eq(arg1 date, arg2 date) → booleanImplements <=> (null-safe equality).SQL
mysql.is_and_eq(arg1 integer, arg2 integer) → booleanImplements <=> (null-safe equality).SQL
mysql.is_and_eq(arg1 mysql."smallint", arg2 mysql."smallint") → booleanImplements <=> (null-safe equality).SQL
mysql.is_and_eq(arg1 name, arg2 name) → booleanImplements <=> (null-safe equality).SQL
mysql.is_and_eq(arg1 text, arg2 text) → booleanImplements <=> (null-safe equality).SQL
mysql.is_and_eq(arg1 time without time zone, arg2 time without time zone) → booleanImplements <=> (null-safe equality).SQL
mysql.is_and_eq(arg1 timestamp without time zone, arg2 timestamp without time zone) → booleanImplements <=> (null-safe equality).SQL

N

S

T

SignaturePurposeSource definition
mysql.text_eq_date(text, date) → booleanImplements = (equal).SQL
mysql.text_eq_hexlit(text, mysql.hexlit) → booleanImplements = (equal).Generated definition
mysql.text_eq_time(text, time without time zone) → booleanImplements = (equal).SQL
mysql.text_eq_timestamp(text, timestamp without time zone) → booleanImplements = (equal).SQL
mysql.text_eq_timestamptz(text, timestamp with time zone) → booleanImplements = (equal).SQL
mysql.text_ge_date(text, date) → booleanImplements >= (greater than or equal).SQL
mysql.text_ge_hexlit(text, mysql.hexlit) → booleanImplements >= (greater than or equal).Generated definition
mysql.text_ge_time(text, time without time zone) → booleanImplements >= (greater than or equal).SQL
mysql.text_ge_timestamp(text, timestamp without time zone) → booleanImplements >= (greater than or equal).SQL
mysql.text_ge_timestamptz(text, timestamp with time zone) → booleanImplements >= (greater than or equal).SQL
mysql.text_gt_date(text, date) → booleanImplements > (greater than).SQL
mysql.text_gt_hexlit(text, mysql.hexlit) → booleanImplements > (greater than).Generated definition
mysql.text_gt_time(text, time without time zone) → booleanImplements > (greater than).SQL
mysql.text_gt_timestamp(text, timestamp without time zone) → booleanImplements > (greater than).SQL
mysql.text_gt_timestamptz(text, timestamp with time zone) → booleanImplements > (greater than).SQL
mysql.text_le_date(text, date) → booleanImplements <= (less than or equal).SQL
mysql.text_le_hexlit(text, mysql.hexlit) → booleanImplements <= (less than or equal).Generated definition
mysql.text_le_time(text, time without time zone) → booleanImplements <= (less than or equal).SQL
mysql.text_le_timestamp(text, timestamp without time zone) → booleanImplements <= (less than or equal).SQL
mysql.text_le_timestamptz(text, timestamp with time zone) → booleanImplements <= (less than or equal).SQL
mysql.text_lt_date(text, date) → booleanImplements < (less than).SQL
mysql.text_lt_hexlit(text, mysql.hexlit) → booleanImplements < (less than).Generated definition
mysql.text_lt_time(text, time without time zone) → booleanImplements < (less than).SQL
mysql.text_lt_timestamp(text, timestamp without time zone) → booleanImplements < (less than).SQL
mysql.text_lt_timestamptz(text, timestamp with time zone) → booleanImplements < (less than).SQL
mysql.text_ne_date(text, date) → booleanImplements <> (not equal).SQL
mysql.text_ne_hexlit(text, mysql.hexlit) → booleanImplements <> (not equal).Generated definition
mysql.text_ne_time(text, time without time zone) → booleanImplements <> (not equal).SQL
mysql.text_ne_timestamp(text, timestamp without time zone) → booleanImplements <> (not equal).SQL
mysql.text_ne_timestamptz(text, timestamp with time zone) → booleanImplements <> (not equal).SQL
mysql.text_nseq_hexlit(text, mysql.hexlit) → booleanImplements <=> (null-safe equality).Generated definition
mysql.textbgbigint(text, bigint) → booleanImplements > (greater than).SQL
mysql.textbgeqbigint(text, bigint) → booleanImplements >= (greater than or equal).SQL
mysql.textbgeqinteger(text, integer) → booleanImplements >= (greater than or equal).SQL
mysql.textbgeqnumeric(text, numeric) → booleanImplements >= (greater than or equal).SQL
mysql.textbgeqsmallint(text, mysql."smallint") → booleanImplements >= (greater than or equal).SQL
mysql.textbginteger(text, integer) → booleanImplements > (greater than).SQL
mysql.textbgnumeric(text, numeric) → booleanImplements > (greater than).SQL
mysql.textbgsmallint(text, mysql."smallint") → booleanImplements > (greater than).SQL
mysql.texteq(text, text) → booleanCompare two text values for equality.SQL · C
mysql.texteqdate(text, date) → booleanTest equality after converting the operands.SQL
mysql.texteqnumeric(text, numeric) → booleanImplements = (equal).SQL
mysql.texteqtime(text, time without time zone) → booleanTest equality after converting the operands.SQL
mysql.texteqtimestamp(text, timestamp without time zone) → booleanTest equality after converting the operands.SQL
mysql.textlebigint(text, bigint) → booleanImplements < (less than).SQL
mysql.textleeqbigint(text, bigint) → booleanImplements <= (less than or equal).SQL
mysql.textleeqinteger(text, integer) → booleanImplements <= (less than or equal).SQL
mysql.textleeqnumeric(text, numeric) → booleanImplements <= (less than or equal).SQL
mysql.textleeqsmallint(text, mysql."smallint") → booleanImplements <= (less than or equal).SQL
mysql.textleinteger(text, integer) → booleanImplements < (less than).SQL
mysql.textlenumeric(text, numeric) → booleanImplements < (less than).SQL
mysql.textlesmallint(text, mysql."smallint") → booleanImplements < (less than).SQL
mysql.textne(text, text) → booleanTest inequality after converting the operands.SQL · C
mysql.textnedate(text, date) → booleanTest inequality after converting the operands.SQL
mysql.textnenumeric(text, numeric) → booleanImplements <> (not equal).SQL
mysql.textnetime(text, time without time zone) → booleanTest inequality after converting the operands.SQL
mysql.textnetimestamp(text, timestamp without time zone) → booleanTest inequality after converting the operands.SQL
mysql.time_eq_text(time without time zone, text) → booleanImplements = (equal).SQL
mysql.time_ge_text(time without time zone, text) → booleanImplements >= (greater than or equal).SQL
mysql.time_gt_text(time without time zone, text) → booleanImplements > (greater than).SQL
mysql.time_le_text(time without time zone, text) → booleanImplements <= (less than or equal).SQL
mysql.time_lt_text(time without time zone, text) → booleanImplements < (less than).SQL
mysql.time_ne_text(time without time zone, text) → booleanImplements <> (not equal).SQL
mysql.timeeqtext(time without time zone, text) → booleanTest equality after converting the operands.SQL
mysql.timenetext(time without time zone, text) → booleanTest inequality after converting the operands.SQL
mysql.timestamp_eq_text(timestamp without time zone, text) → booleanImplements = (equal).SQL · C
mysql.timestamp_ge_text(timestamp without time zone, text) → booleanImplements >= (greater than or equal).SQL · C
mysql.timestamp_gt_text(timestamp without time zone, text) → booleanImplements > (greater than).SQL · C
mysql.timestamp_le_text(timestamp without time zone, text) → booleanImplements <= (less than or equal).SQL · C
mysql.timestamp_lt_text(timestamp without time zone, text) → booleanImplements < (less than).SQL · C
mysql.timestamp_ne_text(timestamp without time zone, text) → booleanImplements <> (not equal).SQL
mysql.timestampeqtext(timestamp without time zone, text) → booleanTest equality after converting the operands.SQL
mysql.timestampnetext(timestamp without time zone, text) → booleanTest inequality after converting the operands.SQL
mysql.timestamptz_eq_text(timestamp with time zone, text) → booleanImplements = (equal).SQL
mysql.timestamptz_ge_text(timestamp with time zone, text) → booleanImplements >= (greater than or equal).SQL
mysql.timestamptz_gt_text(timestamp with time zone, text) → booleanImplements > (greater than).SQL
mysql.timestamptz_le_text(timestamp with time zone, text) → booleanImplements <= (less than or equal).SQL
mysql.timestamptz_lt_text(timestamp with time zone, text) → booleanImplements < (less than).SQL
mysql.timestamptz_ne_text(timestamp with time zone, text) → booleanImplements <> (not equal).SQL

V

SignaturePurposeSource definition
mysql.varbinary_n_eq(mysql.varbinary_n, mysql.varbinary_n) → booleanImplements = (equal).Generated definition
mysql.varbinary_n_ge(mysql.varbinary_n, mysql.varbinary_n) → booleanImplements >= (greater than or equal).Generated definition
mysql.varbinary_n_gt(mysql.varbinary_n, mysql.varbinary_n) → booleanImplements > (greater than).Generated definition
mysql.varbinary_n_le(mysql.varbinary_n, mysql.varbinary_n) → booleanImplements <= (less than or equal).Generated definition
mysql.varbinary_n_lt(mysql.varbinary_n, mysql.varbinary_n) → booleanImplements < (less than).Generated definition
mysql.varbinary_n_ne(mysql.varbinary_n, mysql.varbinary_n) → booleanImplements <> (not equal).Generated definition
mysql.varbit_eq_boolean(bit varying, boolean) → booleanImplements = (equal).SQL
mysql.varbit_eq_hexlit(bit varying, mysql.hexlit) → booleanImplements = (equal).Generated definition
mysql.varbit_eq_int2(bit varying, smallint) → booleanImplements = (equal).SQL
mysql.varbit_eq_int4(bit varying, integer) → booleanImplements = (equal).SQL
mysql.varbit_eq_int8(bit varying, bigint) → booleanImplements = (equal).SQL
mysql.varbit_ge_hexlit(bit varying, mysql.hexlit) → booleanImplements >= (greater than or equal).Generated definition
mysql.varbit_gt_hexlit(bit varying, mysql.hexlit) → booleanImplements > (greater than).Generated definition
mysql.varbit_le_hexlit(bit varying, mysql.hexlit) → booleanImplements <= (less than or equal).Generated definition
mysql.varbit_lt_hexlit(bit varying, mysql.hexlit) → booleanImplements < (less than).Generated definition
mysql.varbit_ne_hexlit(bit varying, mysql.hexlit) → booleanImplements <> (not equal).Generated definition
mysql.varbit_nseq_hexlit(bit varying, mysql.hexlit) → booleanImplements <=> (null-safe equality).Generated definition

8 - Arithmetic operator functions

Internal routines for arithmetic on mixed MySQL operand types.

Internal routines for arithmetic on mixed MySQL operand types.

_

SignaturePurposeSource definition
mysql._add_bool(boolean) → smallintImplements + (unary plus).SQL
mysql._add_null(text) → smallintImplements + (unary plus).SQL
mysql._sub_bool(boolean) → smallintImplements - (unary minus).SQL
mysql._sub_null(text) → smallintImplements - (unary minus).SQL

A

B

SignaturePurposeSource definition
mysql.bigint_add_char(bigint, character) → bigintImplements + (addition).SQL
mysql.bigint_add_text(bigint, text) → bigintImplements + (addition).SQL
mysql.bigint_add_varchar(bigint, character varying) → bigintImplements + (addition).SQL
mysql.bigint_divide_char(bigint, character) → bigintCompute the quotient.SQL
mysql.bigint_divide_text(bigint, text) → bigintCompute the quotient.SQL
mysql.bigint_divide_varchar(bigint, character varying) → bigintCompute the quotient.SQL
mysql.bigint_minus_char(bigint, character) → bigintImplements - (subtraction).SQL
mysql.bigint_minus_text(bigint, text) → bigintImplements - (subtraction).SQL
mysql.bigint_minus_varchar(bigint, character varying) → bigintImplements - (subtraction).SQL
mysql.bigint_mod_char(bigint, character) → bigintImplements % (remainder).SQL
mysql.bigint_mod_text(bigint, text) → bigintImplements % (remainder).SQL
mysql.bigint_mod_varchar(bigint, character varying) → bigintImplements % (remainder).SQL
mysql.bigint_multi_char(bigint, character) → bigintImplements * (multiplication).SQL
mysql.bigint_multi_text(bigint, text) → bigintImplements * (multiplication).SQL
mysql.bigint_multi_varchar(bigint, character varying) → bigintImplements * (multiplication).SQL
mysql.bytea_div_hexlit(bytea, mysql.hexlit) → double precisionImplements / (division).Generated definition
mysql.bytea_mi_hexlit(bytea, mysql.hexlit) → double precisionImplements - (subtraction).Generated definition
mysql.bytea_mod_hexlit(bytea, mysql.hexlit) → double precisionImplements % (remainder).Generated definition
mysql.bytea_mul_hexlit(bytea, mysql.hexlit) → double precisionImplements * (multiplication).Generated definition
mysql.bytea_pl_hexlit(bytea, mysql.hexlit) → double precisionImplements + (addition).Generated definition
mysql.byteadivanycompatible(bytea, anycompatible) → numericImplements / (division).SQL · C
mysql.byteadivbytea(bytea, bytea) → numericImplements / (division).SQL · C
mysql.byteamianycompatible(bytea, anycompatible) → numericImplements - (subtraction).SQL · C
mysql.byteamibytea(bytea, bytea) → numericImplements - (subtraction).SQL · C
mysql.byteamodanycompatible(bytea, anycompatible) → numericImplements % (remainder).SQL · C
mysql.byteamodbytea(bytea, bytea) → numericImplements % (remainder).SQL · C
mysql.byteamulanycompatible(bytea, anycompatible) → numericImplements * (multiplication).SQL · C
mysql.byteamulbytea(bytea, bytea) → numericImplements * (multiplication).SQL · C
mysql.byteaplanycompatible(bytea, anycompatible) → numericImplements + (addition).SQL · C
mysql.byteaplbytea(bytea, bytea) → numericImplements + (addition).SQL · C

C

D

SignaturePurposeSource definition
mysql.date_add_bigint(date, bigint) → bigintImplements + (addition).SQL
mysql.date_add_int(date, integer) → integerImplements + (addition).SQL
mysql.date_add_smallint(date, smallint) → integerImplements + (addition).SQL
mysql.date_minus_bigint(date, bigint) → bigintImplements - (subtraction).SQL
mysql.date_minus_int(date, integer) → integerImplements - (subtraction).SQL
mysql.date_minus_smallint(date, smallint) → integerImplements - (subtraction).SQL
mysql.div_float4_float4(real, real) → double precisionImplements / (division).Generated definition
mysql.div_float4_float8(real, double precision) → double precisionImplements / (division).Generated definition
mysql.div_float8_float4(double precision, real) → double precisionImplements / (division).Generated definition
mysql.div_float8_float8(double precision, double precision) → double precisionImplements / (division).Generated definition
mysql.div_float8_text(double precision, text) → double precisionImplements / (division).SQL
mysql.div_int2_int2(smallint, smallint) → numericImplements / (division).Generated definition
mysql.div_int2_int4(smallint, integer) → numericImplements / (division).Generated definition
mysql.div_int2_int8(smallint, bigint) → numericImplements / (division).Generated definition
mysql.div_int4_int2(integer, smallint) → numericImplements / (division).Generated definition
mysql.div_int4_int4(integer, integer) → numericImplements / (division).Generated definition
mysql.div_int4_int8(integer, bigint) → numericImplements / (division).Generated definition
mysql.div_int8_int2(bigint, smallint) → numericImplements / (division).Generated definition
mysql.div_int8_int4(bigint, integer) → numericImplements / (division).Generated definition
mysql.div_int8_int8(bigint, bigint) → numericImplements / (division).Generated definition
mysql.div_text_float8(text, double precision) → double precisionImplements / (division).SQL
mysql.div_text_text(text, text) → double precisionImplements / (division).SQL

F

H

SignaturePurposeSource definition
mysql.hexlit_div_bytea(mysql.hexlit, bytea) → double precisionImplements / (division).Generated definition
mysql.hexlit_div_float8(mysql.hexlit, double precision) → double precisionImplements / (division).Generated definition
mysql.hexlit_div_hexlit(mysql.hexlit, mysql.hexlit) → numericImplements / (division).Generated definition
mysql.hexlit_div_int2(mysql.hexlit, smallint) → numericImplements / (division).Generated definition
mysql.hexlit_div_int4(mysql.hexlit, integer) → numericImplements / (division).Generated definition
mysql.hexlit_div_int8(mysql.hexlit, bigint) → numericImplements / (division).Generated definition
mysql.hexlit_div_numeric(mysql.hexlit, numeric) → numericImplements / (division).Generated definition
mysql.hexlit_div_text(mysql.hexlit, text) → double precisionImplements / (division).Generated definition
mysql.hexlit_div_varbit(mysql.hexlit, bit varying) → numericImplements / (division).Generated definition
mysql.hexlit_mi_bytea(mysql.hexlit, bytea) → double precisionImplements - (subtraction).Generated definition
mysql.hexlit_mi_float8(mysql.hexlit, double precision) → double precisionImplements - (subtraction).Generated definition
mysql.hexlit_mi_hexlit(mysql.hexlit, mysql.hexlit) → bigintImplements - (subtraction).Generated definition
mysql.hexlit_mi_int2(mysql.hexlit, smallint) → bigintImplements - (subtraction).Generated definition
mysql.hexlit_mi_int4(mysql.hexlit, integer) → bigintImplements - (subtraction).Generated definition
mysql.hexlit_mi_int8(mysql.hexlit, bigint) → bigintImplements - (subtraction).Generated definition
mysql.hexlit_mi_numeric(mysql.hexlit, numeric) → numericImplements - (subtraction).Generated definition
mysql.hexlit_mi_text(mysql.hexlit, text) → double precisionImplements - (subtraction).Generated definition
mysql.hexlit_mi_varbit(mysql.hexlit, bit varying) → bigintImplements - (subtraction).Generated definition
mysql.hexlit_mod_bytea(mysql.hexlit, bytea) → double precisionImplements % (remainder).Generated definition
mysql.hexlit_mod_float8(mysql.hexlit, double precision) → double precisionImplements % (remainder).Generated definition
mysql.hexlit_mod_hexlit(mysql.hexlit, mysql.hexlit) → bigintImplements % (remainder).Generated definition
mysql.hexlit_mod_int2(mysql.hexlit, smallint) → bigintImplements % (remainder).Generated definition
mysql.hexlit_mod_int4(mysql.hexlit, integer) → bigintImplements % (remainder).Generated definition
mysql.hexlit_mod_int8(mysql.hexlit, bigint) → bigintImplements % (remainder).Generated definition
mysql.hexlit_mod_numeric(mysql.hexlit, numeric) → numericImplements % (remainder).Generated definition
mysql.hexlit_mod_text(mysql.hexlit, text) → double precisionImplements % (remainder).Generated definition
mysql.hexlit_mod_varbit(mysql.hexlit, bit varying) → bigintImplements % (remainder).Generated definition
mysql.hexlit_mul_bytea(mysql.hexlit, bytea) → double precisionImplements * (multiplication).Generated definition
mysql.hexlit_mul_float8(mysql.hexlit, double precision) → double precisionImplements * (multiplication).Generated definition
mysql.hexlit_mul_hexlit(mysql.hexlit, mysql.hexlit) → bigintImplements * (multiplication).Generated definition
mysql.hexlit_mul_int2(mysql.hexlit, smallint) → bigintImplements * (multiplication).Generated definition
mysql.hexlit_mul_int4(mysql.hexlit, integer) → bigintImplements * (multiplication).Generated definition
mysql.hexlit_mul_int8(mysql.hexlit, bigint) → bigintImplements * (multiplication).Generated definition
mysql.hexlit_mul_numeric(mysql.hexlit, numeric) → numericImplements * (multiplication).Generated definition
mysql.hexlit_mul_text(mysql.hexlit, text) → double precisionImplements * (multiplication).Generated definition
mysql.hexlit_mul_varbit(mysql.hexlit, bit varying) → bigintImplements * (multiplication).Generated definition
mysql.hexlit_pl_bytea(mysql.hexlit, bytea) → double precisionImplements + (addition).Generated definition
mysql.hexlit_pl_float8(mysql.hexlit, double precision) → double precisionImplements + (addition).Generated definition
mysql.hexlit_pl_hexlit(mysql.hexlit, mysql.hexlit) → bigintImplements + (addition).Generated definition
mysql.hexlit_pl_int2(mysql.hexlit, smallint) → bigintImplements + (addition).Generated definition
mysql.hexlit_pl_int4(mysql.hexlit, integer) → bigintImplements + (addition).Generated definition
mysql.hexlit_pl_int8(mysql.hexlit, bigint) → bigintImplements + (addition).Generated definition
mysql.hexlit_pl_numeric(mysql.hexlit, numeric) → numericImplements + (addition).Generated definition
mysql.hexlit_pl_text(mysql.hexlit, text) → double precisionImplements + (addition).Generated definition
mysql.hexlit_pl_varbit(mysql.hexlit, bit varying) → bigintImplements + (addition).Generated definition
mysql.hexlit_um(mysql.hexlit) → bigintImplements - (unary minus).SQL

I

SignaturePurposeSource definition
mysql.int2_div_hexlit(smallint, mysql.hexlit) → numericImplements / (division).Generated definition
mysql.int2_mi_hexlit(smallint, mysql.hexlit) → bigintImplements - (subtraction).Generated definition
mysql.int2_mod_hexlit(smallint, mysql.hexlit) → bigintImplements % (remainder).Generated definition
mysql.int2_mul_hexlit(smallint, mysql.hexlit) → bigintImplements * (multiplication).Generated definition
mysql.int2_pl_hexlit(smallint, mysql.hexlit) → bigintImplements + (addition).Generated definition
mysql.int4_div_hexlit(integer, mysql.hexlit) → numericImplements / (division).Generated definition
mysql.int4_mi_hexlit(integer, mysql.hexlit) → bigintImplements - (subtraction).Generated definition
mysql.int4_mod_hexlit(integer, mysql.hexlit) → bigintImplements % (remainder).Generated definition
mysql.int4_mul_hexlit(integer, mysql.hexlit) → bigintImplements * (multiplication).Generated definition
mysql.int4_pl_hexlit(integer, mysql.hexlit) → bigintImplements + (addition).Generated definition
mysql.int8_div_hexlit(bigint, mysql.hexlit) → numericImplements / (division).Generated definition
mysql.int8_mi_hexlit(bigint, mysql.hexlit) → bigintImplements - (subtraction).Generated definition
mysql.int8_mod_hexlit(bigint, mysql.hexlit) → bigintImplements % (remainder).Generated definition
mysql.int8_mul_hexlit(bigint, mysql.hexlit) → bigintImplements * (multiplication).Generated definition
mysql.int8_pl_hexlit(bigint, mysql.hexlit) → bigintImplements + (addition).Generated definition
mysql.interval_pl_text(interval, text) → timestamp without time zoneImplements + (addition).SQL · C

M

N

T

SignaturePurposeSource definition
mysql.text_add_bigint(text, bigint) → bigintImplements + (addition).SQL
mysql.text_add_text(text, text) → bigintImplements + (addition).SQL
mysql.text_div_hexlit(text, mysql.hexlit) → double precisionImplements / (division).Generated definition
mysql.text_divide_bigint(text, bigint) → bigintCompute the quotient.SQL
mysql.text_divide_text(text, text) → bigintCompute the quotient.SQL
mysql.text_mi_hexlit(text, mysql.hexlit) → double precisionImplements - (subtraction).Generated definition
mysql.text_mi_interval(text, interval) → timestamp without time zoneImplements - (subtraction).SQL · C
mysql.text_minus_bigint(text, bigint) → bigintImplements - (subtraction).SQL
mysql.text_minus_text(text, text) → bigintImplements - (subtraction).SQL
mysql.text_mod_bigint(text, bigint) → bigintImplements % (remainder).SQL
mysql.text_mod_hexlit(text, mysql.hexlit) → double precisionImplements % (remainder).Generated definition
mysql.text_mod_text(text, text) → bigintImplements % (remainder).SQL
mysql.text_mul_hexlit(text, mysql.hexlit) → double precisionImplements * (multiplication).Generated definition
mysql.text_multi_bigint(text, bigint) → bigintImplements * (multiplication).SQL
mysql.text_multi_text(text, text) → bigintImplements * (multiplication).SQL
mysql.text_pl_hexlit(text, mysql.hexlit) → double precisionImplements + (addition).Generated definition
mysql.text_pl_interval(text, interval) → timestamp without time zoneImplements + (addition).SQL · C
mysql.time_add_bigint(time without time zone, bigint) → double precisionImplements + (addition).SQL
mysql.time_minus_bigint(time without time zone, bigint) → double precisionImplements - (subtraction).SQL
mysql.timestamp_add_bigint(timestamp without time zone, bigint) → double precisionImplements + (addition).SQL
mysql.timestamp_minus_bigint(timestamp without time zone, bigint) → double precisionImplements - (subtraction).SQL

V

SignaturePurposeSource definition
mysql.varbit_div_hexlit(bit varying, mysql.hexlit) → numericImplements / (division).Generated definition
mysql.varbit_mi_hexlit(bit varying, mysql.hexlit) → bigintImplements - (subtraction).Generated definition
mysql.varbit_mod_hexlit(bit varying, mysql.hexlit) → bigintImplements % (remainder).Generated definition
mysql.varbit_mul_hexlit(bit varying, mysql.hexlit) → bigintImplements * (multiplication).Generated definition
mysql.varbit_pl_hexlit(bit varying, mysql.hexlit) → bigintImplements + (addition).Generated definition
mysql.varchar_add_bigint(character varying, bigint) → bigintImplements + (addition).SQL
mysql.varchar_add_varchar(character varying, character varying) → bigintImplements + (addition).SQL
mysql.varchar_divide_bigint(character varying, bigint) → bigintCompute the quotient.SQL
mysql.varchar_divide_varchar(character varying, character varying) → bigintCompute the quotient.SQL
mysql.varchar_minus_bigint(character varying, bigint) → bigintImplements - (subtraction).SQL
mysql.varchar_minus_varchar(character varying, character varying) → bigintImplements - (subtraction).SQL
mysql.varchar_mod_bigint(character varying, bigint) → bigintImplements % (remainder).SQL
mysql.varchar_mod_varchar(character varying, character varying) → bigintImplements % (remainder).SQL
mysql.varchar_multi_bigint(character varying, bigint) → bigintImplements * (multiplication).SQL
mysql.varchar_multi_varchar(character varying, character varying) → bigintImplements * (multiplication).SQL

9 - Bitwise and logical operator functions

Internal routines for bit operations and truth-value tests.

Internal routines for bit operations and truth-value tests.

A

B

SignaturePurposeSource definition
mysql.bigint_and_bigint(bigint, bigint) → booleanImplements && (logical and).SQL
mysql.bigint_bitxor_bigint(bigint, bigint) → bigintImplements ^# (bitwise xor).SQL
mysql.bigint_or_bigint(bigint, bigint) → booleanImplements || (logical or).SQL
mysql.bigint_xor_bigint(bigint, bigint) → smallintImplements ^^ (logical xor).SQL
mysql.bool_and_int2(boolean, smallint) → booleanImplements && (logical and).SQL
mysql.bool_and_int4(boolean, integer) → booleanImplements && (logical and).SQL
mysql.bool_and_int8(boolean, bigint) → booleanImplements && (logical and).SQL
mysql.bool_or_bool(boolean, boolean) → booleanImplements || (logical or).SQL · C
mysql.bool_or_int2(boolean, smallint) → booleanImplements || (logical or).SQL
mysql.bool_or_int4(boolean, integer) → booleanImplements || (logical or).SQL
mysql.bool_or_int8(boolean, bigint) → booleanImplements || (logical or).SQL
mysql.boolcondandbool(boolean, boolean) → booleanImplements && (logical and).SQL · C
mysql.bytea_and_hexlit(bytea, mysql.hexlit) → bigintImplements & (bitwise and).Generated definition
mysql.bytea_or_hexlit(bytea, mysql.hexlit) → bigintImplements | (bitwise or).Generated definition
mysql.bytea_shl_hexlit(bytea, mysql.hexlit) → bigintImplements << (left shift).Generated definition
mysql.bytea_shr_hexlit(bytea, mysql.hexlit) → bigintImplements >> (right shift).Generated definition
mysql.bytea_xor_hexlit(bytea, mysql.hexlit) → bigintImplements ^# (bitwise xor).Generated definition
mysql.byteaandanycompatible(bytea, anycompatible) → bigintImplements & (bitwise and).SQL · C
mysql.byteaandbytea(bytea, bytea) → bigintImplements & (bitwise and).SQL · C
mysql.byteacondandanycompatible(bytea, anycompatible) → booleanImplements && (logical and).SQL · C
mysql.byteacondandbytea(bytea, bytea) → booleanImplements && (logical and).SQL · C
mysql.byteacondoranycompatible(bytea, anycompatible) → booleanImplements || (logical or).SQL · C
mysql.byteacondorbytea(bytea, bytea) → booleanImplements || (logical or).SQL · C
mysql.byteaoranycompatible(bytea, anycompatible) → bigintImplements | (bitwise or).SQL · C
mysql.byteaorbytea(bytea, bytea) → bigintImplements | (bitwise or).SQL · C

F

H

SignaturePurposeSource definition
mysql.hexlit_and_bytea(mysql.hexlit, bytea) → bigintImplements & (bitwise and).Generated definition
mysql.hexlit_and_float8(mysql.hexlit, double precision) → bigintImplements & (bitwise and).Generated definition
mysql.hexlit_and_hexlit(mysql.hexlit, mysql.hexlit) → bigintImplements & (bitwise and).Generated definition
mysql.hexlit_and_int2(mysql.hexlit, smallint) → bigintImplements & (bitwise and).Generated definition
mysql.hexlit_and_int4(mysql.hexlit, integer) → bigintImplements & (bitwise and).Generated definition
mysql.hexlit_and_int8(mysql.hexlit, bigint) → bigintImplements & (bitwise and).Generated definition
mysql.hexlit_and_numeric(mysql.hexlit, numeric) → bigintImplements & (bitwise and).Generated definition
mysql.hexlit_and_text(mysql.hexlit, text) → bigintImplements & (bitwise and).Generated definition
mysql.hexlit_and_varbit(mysql.hexlit, bit varying) → bigintImplements & (bitwise and).Generated definition
mysql.hexlit_not(mysql.hexlit) → numericImplements ~ (bitwise complement).SQL
mysql.hexlit_or_bytea(mysql.hexlit, bytea) → bigintImplements | (bitwise or).Generated definition
mysql.hexlit_or_float8(mysql.hexlit, double precision) → bigintImplements | (bitwise or).Generated definition
mysql.hexlit_or_hexlit(mysql.hexlit, mysql.hexlit) → bigintImplements | (bitwise or).Generated definition
mysql.hexlit_or_int2(mysql.hexlit, smallint) → bigintImplements | (bitwise or).Generated definition
mysql.hexlit_or_int4(mysql.hexlit, integer) → bigintImplements | (bitwise or).Generated definition
mysql.hexlit_or_int8(mysql.hexlit, bigint) → bigintImplements | (bitwise or).Generated definition
mysql.hexlit_or_numeric(mysql.hexlit, numeric) → bigintImplements | (bitwise or).Generated definition
mysql.hexlit_or_text(mysql.hexlit, text) → bigintImplements | (bitwise or).Generated definition
mysql.hexlit_or_varbit(mysql.hexlit, bit varying) → bigintImplements | (bitwise or).Generated definition
mysql.hexlit_shl_bytea(mysql.hexlit, bytea) → bigintImplements << (left shift).Generated definition
mysql.hexlit_shl_float8(mysql.hexlit, double precision) → bigintImplements << (left shift).Generated definition
mysql.hexlit_shl_hexlit(mysql.hexlit, mysql.hexlit) → bigintImplements << (left shift).Generated definition
mysql.hexlit_shl_int2(mysql.hexlit, smallint) → bigintImplements << (left shift).Generated definition
mysql.hexlit_shl_int4(mysql.hexlit, integer) → bigintImplements << (left shift).Generated definition
mysql.hexlit_shl_int8(mysql.hexlit, bigint) → bigintImplements << (left shift).Generated definition
mysql.hexlit_shl_numeric(mysql.hexlit, numeric) → bigintImplements << (left shift).Generated definition
mysql.hexlit_shl_text(mysql.hexlit, text) → bigintImplements << (left shift).Generated definition
mysql.hexlit_shl_varbit(mysql.hexlit, bit varying) → bigintImplements << (left shift).Generated definition
mysql.hexlit_shr_bytea(mysql.hexlit, bytea) → bigintImplements >> (right shift).Generated definition
mysql.hexlit_shr_float8(mysql.hexlit, double precision) → bigintImplements >> (right shift).Generated definition
mysql.hexlit_shr_hexlit(mysql.hexlit, mysql.hexlit) → bigintImplements >> (right shift).Generated definition
mysql.hexlit_shr_int2(mysql.hexlit, smallint) → bigintImplements >> (right shift).Generated definition
mysql.hexlit_shr_int4(mysql.hexlit, integer) → bigintImplements >> (right shift).Generated definition
mysql.hexlit_shr_int8(mysql.hexlit, bigint) → bigintImplements >> (right shift).Generated definition
mysql.hexlit_shr_numeric(mysql.hexlit, numeric) → bigintImplements >> (right shift).Generated definition
mysql.hexlit_shr_text(mysql.hexlit, text) → bigintImplements >> (right shift).Generated definition
mysql.hexlit_shr_varbit(mysql.hexlit, bit varying) → bigintImplements >> (right shift).Generated definition
mysql.hexlit_xor_bytea(mysql.hexlit, bytea) → bigintImplements ^# (bitwise xor).Generated definition
mysql.hexlit_xor_float8(mysql.hexlit, double precision) → bigintImplements ^# (bitwise xor).Generated definition
mysql.hexlit_xor_hexlit(mysql.hexlit, mysql.hexlit) → bigintImplements ^# (bitwise xor).Generated definition
mysql.hexlit_xor_int2(mysql.hexlit, smallint) → bigintImplements ^# (bitwise xor).Generated definition
mysql.hexlit_xor_int4(mysql.hexlit, integer) → bigintImplements ^# (bitwise xor).Generated definition
mysql.hexlit_xor_int8(mysql.hexlit, bigint) → bigintImplements ^# (bitwise xor).Generated definition
mysql.hexlit_xor_numeric(mysql.hexlit, numeric) → bigintImplements ^# (bitwise xor).Generated definition
mysql.hexlit_xor_text(mysql.hexlit, text) → bigintImplements ^# (bitwise xor).Generated definition
mysql.hexlit_xor_varbit(mysql.hexlit, bit varying) → bigintImplements ^# (bitwise xor).Generated definition

I

SignaturePurposeSource definition
mysql.int2_and_bool(smallint, boolean) → booleanImplements && (logical and).SQL
mysql.int2_and_hexlit(smallint, mysql.hexlit) → bigintImplements & (bitwise and).Generated definition
mysql.int2_and_int2(smallint, smallint) → booleanImplements && (logical and).SQL
mysql.int2_and_int4(smallint, integer) → booleanImplements && (logical and).SQL
mysql.int2_and_int8(smallint, bigint) → booleanImplements && (logical and).SQL
mysql.int2_or_bool(smallint, boolean) → booleanImplements || (logical or).SQL
mysql.int2_or_hexlit(smallint, mysql.hexlit) → bigintImplements | (bitwise or).Generated definition
mysql.int2_or_int2(smallint, smallint) → booleanImplements || (logical or).SQL
mysql.int2_or_int4(smallint, integer) → booleanImplements || (logical or).SQL
mysql.int2_or_int8(smallint, bigint) → booleanImplements || (logical or).SQL
mysql.int2_shl_hexlit(smallint, mysql.hexlit) → bigintImplements << (left shift).Generated definition
mysql.int2_shr_hexlit(smallint, mysql.hexlit) → bigintImplements >> (right shift).Generated definition
mysql.int2_xor_hexlit(smallint, mysql.hexlit) → bigintImplements ^# (bitwise xor).Generated definition
mysql.int2andint4(smallint, integer) → integerImplements & (bitwise and).SQL
mysql.int2andint8(smallint, bigint) → bigintImplements & (bitwise and).SQL
mysql.int2andnumeric(smallint, numeric) → bigintImplements & (bitwise and).SQL
mysql.int2leftmoveint2(smallint, smallint) → bigintImplements << (left shift).SQL
mysql.int2leftmoveint4(smallint, integer) → bigintImplements << (left shift).SQL
mysql.int2leftmoveint8(smallint, bigint) → bigintImplements << (left shift).SQL
mysql.int2orint4(smallint, integer) → integerImplements | (bitwise or).SQL
mysql.int2orint8(smallint, bigint) → bigintImplements | (bitwise or).SQL
mysql.int2ornumeric(smallint, numeric) → bigintImplements | (bitwise or).SQL
mysql.int2rightmoveint2(smallint, smallint) → bigintImplements >> (right shift).SQL
mysql.int2rightmoveint4(smallint, integer) → bigintImplements >> (right shift).SQL
mysql.int2rightmoveint8(smallint, bigint) → bigintImplements >> (right shift).SQL
mysql.int4_and_bool(integer, boolean) → booleanImplements && (logical and).SQL
mysql.int4_and_hexlit(integer, mysql.hexlit) → bigintImplements & (bitwise and).Generated definition
mysql.int4_and_int2(integer, smallint) → booleanImplements && (logical and).SQL
mysql.int4_and_int4(integer, integer) → booleanImplements && (logical and).SQL
mysql.int4_and_int8(integer, bigint) → booleanImplements && (logical and).SQL
mysql.int4_or_bool(integer, boolean) → booleanImplements || (logical or).SQL
mysql.int4_or_hexlit(integer, mysql.hexlit) → bigintImplements | (bitwise or).Generated definition
mysql.int4_or_int2(integer, smallint) → booleanImplements || (logical or).SQL
mysql.int4_or_int4(integer, integer) → booleanImplements || (logical or).SQL
mysql.int4_or_int8(integer, bigint) → booleanImplements || (logical or).SQL
mysql.int4_shl_hexlit(integer, mysql.hexlit) → bigintImplements << (left shift).Generated definition
mysql.int4_shr_hexlit(integer, mysql.hexlit) → bigintImplements >> (right shift).Generated definition
mysql.int4_xor_hexlit(integer, mysql.hexlit) → bigintImplements ^# (bitwise xor).Generated definition
mysql.int4andint2(integer, smallint) → integerImplements & (bitwise and).SQL
mysql.int4andint8(integer, bigint) → bigintImplements & (bitwise and).SQL
mysql.int4andnumeric(integer, numeric) → bigintImplements & (bitwise and).SQL
mysql.int4andtext(integer, text) → integerImplements & (bitwise and).SQL
mysql.int4leftmoveint2(integer, smallint) → bigintImplements << (left shift).SQL
mysql.int4leftmoveint4(integer, integer) → bigintImplements << (left shift).SQL
mysql.int4leftmoveint8(integer, bigint) → bigintImplements << (left shift).SQL
mysql.int4orint2(integer, smallint) → integerImplements | (bitwise or).SQL
mysql.int4orint8(integer, bigint) → bigintImplements | (bitwise or).SQL
mysql.int4ornumeric(integer, numeric) → bigintImplements | (bitwise or).SQL
mysql.int4rightmoveint2(integer, smallint) → bigintImplements >> (right shift).SQL
mysql.int4rightmoveint4(integer, integer) → bigintImplements >> (right shift).SQL
mysql.int4rightmoveint8(integer, bigint) → bigintImplements >> (right shift).SQL
mysql.int8_and_bool(bigint, boolean) → booleanImplements && (logical and).SQL
mysql.int8_and_hexlit(bigint, mysql.hexlit) → bigintImplements & (bitwise and).Generated definition
mysql.int8_and_int2(bigint, smallint) → booleanImplements && (logical and).SQL
mysql.int8_and_int4(bigint, integer) → booleanImplements && (logical and).SQL
mysql.int8_or_bool(bigint, boolean) → booleanImplements || (logical or).SQL
mysql.int8_or_hexlit(bigint, mysql.hexlit) → bigintImplements | (bitwise or).Generated definition
mysql.int8_or_int2(bigint, smallint) → booleanImplements || (logical or).SQL
mysql.int8_or_int4(bigint, integer) → booleanImplements || (logical or).SQL
mysql.int8_shl_hexlit(bigint, mysql.hexlit) → bigintImplements << (left shift).Generated definition
mysql.int8_shr_hexlit(bigint, mysql.hexlit) → bigintImplements >> (right shift).Generated definition
mysql.int8_xor_hexlit(bigint, mysql.hexlit) → bigintImplements ^# (bitwise xor).Generated definition
mysql.int8andint2(bigint, smallint) → bigintImplements & (bitwise and).SQL
mysql.int8andint4(bigint, integer) → bigintImplements & (bitwise and).SQL
mysql.int8andnumeric(bigint, numeric) → bigintImplements & (bitwise and).SQL
mysql.int8leftmoveint2(bigint, smallint) → bigintImplements << (left shift).SQL
mysql.int8leftmoveint4(bigint, integer) → bigintImplements << (left shift).SQL
mysql.int8leftmoveint8(bigint, bigint) → bigintImplements << (left shift).SQL
mysql.int8orint2(bigint, smallint) → bigintImplements | (bitwise or).SQL
mysql.int8orint4(bigint, integer) → bigintImplements | (bitwise or).SQL
mysql.int8ornumeric(bigint, numeric) → bigintImplements | (bitwise or).SQL
mysql.int8rightmoveint2(bigint, smallint) → bigintImplements >> (right shift).SQL
mysql.int8rightmoveint4(bigint, integer) → bigintImplements >> (right shift).SQL
mysql.int8rightmoveint8(bigint, bigint) → bigintImplements >> (right shift).SQL

N

T

V

10 - Pattern and JSON operator functions

Internal routines for LIKE, regular expressions and JSON field access.

Internal routines for LIKE, regular expressions and JSON field access.

A

SignaturePurposeSource definition
mysql.anycompatiblelikebytea(anycompatible, bytea) → booleanImplements ~~ (like pattern match).SQL · C
mysql.anycompatiblenlikebytea(anycompatible, bytea) → booleanImplements !~~ (negated like match).SQL · C
mysql.anycompatiblenregexpbinbytea(anycompatible, bytea) → booleanImplements !~ (negated case-sensitive regular expression match).SQL · C
mysql.anycompatiblenregexpbytea(anycompatible, bytea) → booleanImplements !~* (negated case-insensitive regular expression match).SQL · C
mysql.anycompatibleregexpbinbytea(anycompatible, bytea) → booleanImplements ~ (case-sensitive regular expression match).SQL · C
mysql.anycompatibleregexpbytea(anycompatible, bytea) → booleanImplements ~* (case-insensitive regular expression match).SQL · C

B

SignaturePurposeSource definition
mysql.bigint_like_text(bigint, text) → booleanImplements ~~ (like pattern match).SQL
mysql.bigint_not_like_text(bigint, text) → booleanImplements !~~ (negated like match).SQL
mysql.binary_regular_expr(bigint, text) → booleanImplements ~ (case-sensitive regular expression match).SQL
mysql.binary_regular_expr_not(bigint, text) → booleanImplements !~ (negated case-sensitive regular expression match).SQL
mysql.bpcharlike(character, text) → booleanImplements ~~ (like pattern match).SQL · C
mysql.bpcharnlike(character, text) → booleanImplements !~~ (negated like match).SQL · C
mysql.bytea_like_hexlit(bytea, mysql.hexlit) → booleanImplements ~~ (like pattern match).Generated definition
mysql.bytea_nlike_hexlit(bytea, mysql.hexlit) → booleanImplements !~~ (negated like match).Generated definition
mysql.bytealikeanycompatible(bytea, anycompatible) → booleanImplements ~~ (like pattern match).SQL · C
mysql.byteanlikeanycompatible(bytea, anycompatible) → booleanImplements !~~ (negated like match).SQL · C
mysql.byteanregexpanycompatible(bytea, anycompatible) → booleanImplements !~* (negated case-insensitive regular expression match).SQL · C
mysql.byteanregexpbinanycompatible(bytea, anycompatible) → booleanImplements !~ (negated case-sensitive regular expression match).SQL · C
mysql.byteanregexpbinbytea(bytea, bytea) → booleanImplements !~ (negated case-sensitive regular expression match).SQL · C
mysql.byteanregexpbytea(bytea, bytea) → booleanImplements !~* (negated case-insensitive regular expression match).SQL · C
mysql.bytearegexpanycompatible(bytea, anycompatible) → booleanImplements ~* (case-insensitive regular expression match).SQL · C
mysql.bytearegexpbinanycompatible(bytea, anycompatible) → booleanImplements ~ (case-sensitive regular expression match).SQL · C
mysql.bytearegexpbinbytea(bytea, bytea) → booleanImplements ~ (case-sensitive regular expression match).SQL · C
mysql.bytearegexpbytea(bytea, bytea) → booleanImplements ~* (case-insensitive regular expression match).SQL · C

H

J

SignaturePurposeSource definition
mysql.json_object_field(from_json json, field_name text) → jsonImplements -> (extract a json field by name).SQL

P

SignaturePurposeSource definition
mysql.prefix_like(character, text) → booleanImplements # (like match for prefix indexing).SQL · C
mysql.prefix_like(text, text) → booleanImplements # (like match for prefix indexing).SQL · C
mysql.prefix_not_like(character, text) → booleanImplements !# (negated like match for prefix indexing).SQL · C
mysql.prefix_not_like(text, text) → booleanImplements !# (negated like match for prefix indexing).SQL · C

R

SignaturePurposeSource definition
mysql.regular_expr(bigint, text) → booleanImplements ~* (case-insensitive regular expression match).SQL
mysql.regular_expr_not(bigint, text) → booleanImplements !~* (negated case-insensitive regular expression match).SQL

T

SignaturePurposeSource definition
mysql.text_like_bigint(text, bigint) → booleanImplements ~~ (like pattern match).SQL
mysql.text_like_hexlit(text, mysql.hexlit) → booleanImplements ~~ (like pattern match).Generated definition
mysql.text_nlike_hexlit(text, mysql.hexlit) → booleanImplements !~~ (negated like match).Generated definition
mysql.text_not_like_bigint(text, bigint) → booleanImplements !~~ (negated like match).SQL

11 - String and number helpers

Internal routines used by string searches, validation and rounding.

Internal routines used by string searches, validation and rounding.

C

SignaturePurposeSource definition
mysql.ceil_for_mysql(text) → bigintRound a number parsed from text up to an integer.SQL · C
mysql.check_set(text, text) → booleanCheck a value against a SET definition.SQL · C

F

SignaturePurposeSource definition
mysql.floor_for_mysql(text) → bigintRound a number parsed from text down to an integer.SQL · C

I

SignaturePurposeSource definition
mysql.is_numeric(text) → booleanValidate the numeric representation.SQL
mysql.is_valid_binary(text) → booleanValidate the numeric representation.SQL · C
mysql.is_valid_hex(text) → booleanValidate the numeric representation.SQL · C

T

SignaturePurposeSource definition
mysql.text_instr(text, text) → integerFind a substring for LOCATE or INSTR.SQL · C
mysql.text_locate2(text, text) → integerFind a substring for LOCATE or INSTR.SQL · C
mysql.text_locate3(text, text, bigint) → integerFind a substring for LOCATE or INSTR.SQL · C

12 - Temporal conversion helpers

Internal routines for date normalization, week modes and numeric date arithmetic.

Internal routines for date normalization, week modes and numeric date arithmetic.

_

SignaturePurposeSource definition
mysql._calc_days_in_year(integer) → integerCount days in the given year.SQL
mysql._calc_week(qdate date, behavior integer) → integer[]Calculate the weekday or week number under MySQL week rules.SQL
mysql._calc_weekday(qdate date, sundayfirst boolean) → integerCalculate the weekday or week number under MySQL week rules.SQL
mysql._convert_format_to_halo_for_number_datetime(text) → textNormalize date/time input for conversion to text.SQL
mysql._convert_format_to_halo_for_string_datetime(text) → textNormalize date/time input for conversion to text.SQL
mysql._convert_format_to_halo_for_string_number_datetime(text) → textNormalize date/time input for conversion to text.SQL
mysql._convert_format_to_halo_for_string_string_datetime(text) → textNormalize date/time input for conversion to text.SQL
mysql._date_padding(text) → textNormalize date/time input for conversion to text.SQL
mysql._process_for_number_datetime(text) → textNormalize date/time input for conversion to text.SQL
mysql._process_for_string_number_datetime(text) → textNormalize date/time input for conversion to text.SQL
mysql._week_mode(mode integer) → integerCalculate the weekday or week number under MySQL week rules.SQL

C

SignaturePurposeSource definition
mysql.convert_to_time_format(text) → intervalNormalize date/time input for conversion to interval.SQL
mysql.curdate_add(integer) → integerApply integer arithmetic to today’s YYYYMMDD value.SQL
mysql.curdate_sub(integer) → integerApply integer arithmetic to today’s YYYYMMDD value.SQL

N

SignaturePurposeSource definition
mysql.numeric_timestamp(numeric) → timestamp without time zoneNormalize 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_datetimemysql._normalize_numeric_datetime
mysql._convert_format_to_halo_for_string_datetimemysql._normalize_datetime_text
mysql._convert_format_to_halo_for_string_number_datetimemysql._normalize_compact_datetime_text
mysql._convert_format_to_halo_for_string_string_datetimemysql._normalize_delimited_datetime_text

13 - Binary and string storage helpers

Internal routines for type I/O, binary expression evaluation and string results.

Internal routines for type I/O, binary expression evaluation and string results.

A

SignaturePurposeSource definition
mysql.array_to_string_for_mysql(anyarray, text) → textInternal final string conversion for GROUP_CONCAT.SQL · C
mysql.array_to_string_for_mysql(bytea[], text) → byteaInternal final string conversion for GROUP_CONCAT.Generated definition · C
mysql.array_to_string_for_mysql(character varying[], text) → textInternal final string conversion for GROUP_CONCAT.SQL · C
mysql.array_to_string_for_mysql(character[], text) → textInternal final string conversion for GROUP_CONCAT.SQL · C
mysql.array_to_string_for_mysql(mysql."binary"[], text) → byteaInternal final string conversion for GROUP_CONCAT.Generated definition · C
mysql.array_to_string_for_mysql(mysql.binary_n[], text) → byteaInternal final string conversion for GROUP_CONCAT.Generated definition · C
mysql.array_to_string_for_mysql(mysql.blob[], text) → byteaInternal final string conversion for GROUP_CONCAT.Generated definition · C
mysql.array_to_string_for_mysql(mysql.hexlit[], text) → byteaInternal final string conversion for GROUP_CONCAT.Generated definition · C
mysql.array_to_string_for_mysql(mysql.varbinary[], text) → byteaInternal final string conversion for GROUP_CONCAT.Generated definition · C
mysql.array_to_string_for_mysql(mysql.varbinary_n[], text) → byteaInternal final string conversion for GROUP_CONCAT.Generated definition · C
mysql.array_to_string_for_mysql(text[], text) → textInternal final string conversion for GROUP_CONCAT.SQL · C

B

SignaturePurposeSource definition
mysql.binary_n_in(cstring, oid, integer) → mysql.binary_nRead the text format of a binary value.Generated definition · C
mysql.binary_n_out(mysql.binary_n) → cstringWrite the text format of a binary value.Generated definition
mysql.binary_n_recv(internal, oid, integer) → mysql.binary_nReceive the PostgreSQL binary representation.Generated definition · C
mysql.binary_n_send(mysql.binary_n) → byteaSend the PostgreSQL binary representation.Generated definition
mysql.binary_n_typmodin(cstring[]) → integerParse the declared length modifier.Generated definition · C
mysql.binary_n_typmodout(integer) → cstringFormat the length modifier.Generated definition · C
mysql.binary_truth("any") → booleanEvaluate the truth value of a binary or string operand.SQL · C

C

SignaturePurposeSource definition
mysql.cast_char("any", integer) → textConvert an expression to the requested character representation.SQL · C
mysql.concat_one("any") → textCombine string operands for CONCAT or CONCAT_WS while preserving binary results.SQL · C
mysql.concat_one(bytea) → byteaCombine string operands for CONCAT or CONCAT_WS while preserving binary results.Generated definition · C
mysql.concat_one(character) → textCombine string operands for CONCAT or CONCAT_WS while preserving binary results.SQL · C
mysql.concat_one(mysql.binary_n) → byteaCombine string operands for CONCAT or CONCAT_WS while preserving binary results.Generated definition · C
mysql.concat_one(mysql.hexlit) → byteaCombine string operands for CONCAT or CONCAT_WS while preserving binary results.Generated definition · C
mysql.concat_one(mysql.varbinary_n) → byteaCombine string operands for CONCAT or CONCAT_WS while preserving binary results.Generated definition · C
mysql.concat_one(text) → textCombine string operands for CONCAT or CONCAT_WS while preserving binary results.Generated definition · C
mysql.concat_pair(bytea, bytea) → byteaCombine string operands for CONCAT or CONCAT_WS while preserving binary results.Generated definition
mysql.concat_pair(bytea, text) → byteaCombine string operands for CONCAT or CONCAT_WS while preserving binary results.Generated definition
mysql.concat_pair(text, bytea) → byteaCombine string operands for CONCAT or CONCAT_WS while preserving binary results.Generated definition
mysql.concat_pair(text, text) → textCombine string operands for CONCAT or CONCAT_WS while preserving binary results.Generated definition
mysql.concat_ws_bytes(VARIADIC "any") → byteaCombine string operands for CONCAT or CONCAT_WS while preserving binary results.SQL · C
mysql.convert_using("any", text) → textConvert an expression to the requested character representation.SQL · C

E

SignaturePurposeSource definition
mysql.elt_index("any") → integerConvert the selector for ELT into a position.SQL · C

H

SignaturePurposeSource definition
mysql.hexlit_cmp_support(internal) → internalProvide planner support for comparisons with a hex literal.SQL · C
mysql.hexlit_in(cstring) → mysql.hexlitRead the text format of a binary value.SQL
mysql.hexlit_out(mysql.hexlit) → cstringWrite the text format of a binary value.SQL
mysql.hexlit_recv(internal) → mysql.hexlitReceive the PostgreSQL binary representation.SQL
mysql.hexlit_send(mysql.hexlit) → byteaSend the PostgreSQL binary representation.SQL

M

SignaturePurposeSource definition
mysql.mys_uint64_bitnot(numeric) → numericEvaluate a MySQL unsigned 64-bit bitwise expression.SQL · C
mysql.mys_uint64_bitop(numeric, numeric, "char") → bigintEvaluate a MySQL unsigned 64-bit bitwise expression.SQL · C

R

SignaturePurposeSource definition
mysql.raw_bytes("any") → byteaExtract the underlying bytes of the value.SQL · C

S

SignaturePurposeSource definition
mysql.string_result(anyelement, "any") → anyelementProduce the string result of a rewritten expression.SQL · C

V

14 - Aggregate support functions

Internal transition and final functions invoked while computing an aggregate.

Internal transition and final functions invoked while computing an aggregate.

B

SignaturePurposeSource definition
mysql.bit_and_varbit(bigint, bit varying) → bigintAccumulate the next input into the aggregate state.SQL
mysql.bit_and_varbit_final(bigint) → bigintFinalize the aggregate state.SQL
mysql.bit_or_varbit(bigint, bit varying) → bigintAccumulate the next input into the aggregate state.SQL
mysql.bit_or_varbit_final(bigint) → bigintFinalize the aggregate state.SQL
mysql.bit_xor_varbit(bigint, bit varying) → bigintAccumulate the next input into the aggregate state.SQL
mysql.bit_xor_varbit_final(bigint) → bigintFinalize the aggregate state.SQL

D

SignaturePurposeSource definition
mysql.dummy_min_finalfunc_for_bytea(bytea) → byteaFinalize the aggregate state.SQL
mysql.dummy_min_sfunc_for_bytea(bytea, bytea) → byteaAccumulate the next input into the aggregate state.SQL

S

SignaturePurposeSource definition
mysql.sum_bool(bigint, boolean) → bigintAccumulate the next input into the aggregate state.SQL
mysql.sum_text(numeric, text) → numericAccumulate the next input into the aggregate state.SQL
mysql.sum_text_final(numeric) → numericFinalize the aggregate state.SQL

T

SignaturePurposeSource definition
mysql.text_avg_accum(internal, text) → internalAccumulate 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.

Internal functions for index access, key comparison, hashing and operator-class registration.

B

H

SignaturePurposeSource definition
mysql.hexlit_cmp(mysql.hexlit, mysql.hexlit) → integerCompare binary keys in B-tree order.SQL
mysql.hexlit_hash(mysql.hexlit) → integerHash the binary key for a hash index.SQL
mysql.hexlit_hash_extended(mysql.hexlit, bigint) → bigintHash the binary key for a hash index.SQL

P

SignaturePurposeSource definition
mysql.prefix_1042_cmp(character, character) → integerCompare two keys for a mysql_prefix index.Generated definition · C
mysql.prefix_17_cmp(bytea, bytea) → integerCompare two keys for a mysql_prefix index.Generated definition · C
mysql.prefix_25_cmp(text, text) → integerCompare two keys for a mysql_prefix index.Generated definition · C
mysql.prefix_53875699983efc79eeb9e023e66605f5_cmp(mysql.binary_n, mysql.binary_n) → integerCompare two keys for a mysql_prefix index.Generated definition · C
mysql.prefix_b8aba7e65857eaf6a91ca737fb14b87b_cmp(mysql.varbinary_n, mysql.varbinary_n) → integerCompare two keys for a mysql_prefix index.Generated definition · C
mysql.prefix_handler(internal) → index_am_handlerSupply the mysql_prefix access method callbacks.SQL · C
mysql.prefix_options(internal) → voidDeclare index operator-class options for prefix keys.SQL · C

R

SignaturePurposeSource definition
mysql.register_prefix_binary(t regtype) → voidRegister prefix-index support for a type. EXECUTE is restricted.SQL
mysql.register_prefix_type(t regtype, string_storage boolean) → voidRegister prefix-index support for a type. EXECUTE is restricted.SQL

V

16 - Session state and variable helpers

Internal interfaces behind SET, SHOW, user variables and authentication cache management.

Internal interfaces behind SET, SHOW, user variables and authentication cache management.

C

SignaturePurposeSource definition
mysql.clear_user_variables() → voidClear the session’s user variables.SQL · C

F

SignaturePurposeSource definition
mysql.flush_auth_cache() → bigintClear the fast-authentication cache. EXECUTE is restricted.SQL · C

G

SignaturePurposeSource definition
mysql.get_system_global_variable(text) → textRead a global @@ variable.SQL
mysql.get_system_session_variable(text) → textRead a session @@ variable.SQL
mysql.get_system_variable(text, boolean) → textResolve a system variable for its requested scope.SQL · C
mysql.get_user_var(variable_name character varying) → byteaRead a MySQL @user variable.SQL · C
mysql.getenv(text) → textRead a server environment variable for installation. EXECUTE is restricted.SQL · C

S

SignaturePurposeSource definition
mysql.set_system_charset_variable(text) → voidApply SET CHARACTER SET to the current connection.SQL · C
mysql.set_system_global_variable(text, anycompatible) → voidSet the global value of a system variable.SQL
mysql.set_system_names_variable(text) → voidApply SET NAMES to the current connection.SQL · C
mysql.set_system_names_variable(text, text) → voidApply SET NAMES to the current connection.SQL · C
mysql.set_system_session_variable(text, anycompatible) → voidSet the session value of a system variable.SQL
mysql.set_system_variable(text, text, boolean) → booleanAssign a system variable in the selected scope.SQL · C
mysql.set_user_var(variable_name character varying, variable_value anycompatible) → voidStore a MySQL @user variable for SET or expression evaluation.SQL · C
mysql.set_user_var_in_expr(variable_name character varying, variable_value anycompatible) → byteaStore a MySQL @user variable for SET or expression evaluation.SQL · C
mysql.show_system_variable(text, boolean) → textResolve a system variable for its requested scope.SQL · C

17 - DDL and write helpers

Internal routines invoked by column expressions, sequences and row triggers.

Internal routines invoked by column expressions, sequences and row triggers.

auto_increment_advance

SignaturePurposeSource definition
mysql.auto_increment_advance() → triggerAdvance the sequence after an explicit AUTO_INCREMENT value.SQL · C

column_default

SignaturePurposeSource definition
mysql.column_default(oid, integer) → textRead a column’s default expression.SQL · C

generated_column

SignaturePurposeSource definition
mysql.generated_column(text, anyelement) → anyelementCarry a generated-column value through a rewritten expression.SQL

generated_numeric

SignaturePurposeSource definition
mysql.generated_numeric(numeric, integer) → numericApply the declared type modifier to a generated value.SQL · C

generated_value

SignaturePurposeSource definition
mysql.generated_value(anyelement) → anyelementCarry a generated-column value through a rewritten expression.SQL

generated_varchar

SignaturePurposeSource definition
mysql.generated_varchar(text, integer, boolean) → textApply the declared type modifier to a generated value.SQL · C

lenient_float8

SignaturePurposeSource definition
mysql.lenient_float8(text) → double precisionCoerce a value for a non-strict INSERT or UPDATE.SQL · C

lenient_int

SignaturePurposeSource definition
mysql.lenient_int(text, bigint, bigint) → bigintCoerce a value for a non-strict INSERT or UPDATE.SQL · C

lenient_numeric

SignaturePurposeSource definition
mysql.lenient_numeric(text, integer) → numericCoerce a value for a non-strict INSERT or UPDATE.SQL · C

lenient_varchar

SignaturePurposeSource definition
mysql.lenient_varchar(text, integer) → textCoerce a value for a non-strict INSERT or UPDATE.SQL · C

on_update_current_timestamp

SignaturePurposeSource definition
mysql.on_update_current_timestamp() → triggerUpdate timestamp columns from a row trigger.SQL · C

part_list_columns

SignaturePurposeSource definition
mysql.part_list_columns(VARIADIC "any") → textBuild a list-partition column key.SQL · C

pending_fk_definitions

SignaturePurposeSource definition
mysql.pending_fk_definitions(oid) → SETOF textFormat deferred foreign key definitions for a child relation.SQL

pending_fk_guard

SignaturePurposeSource definition
mysql.pending_fk_guard() → triggerRun the trigger for a pending foreign key.SQL · C

setval

SignaturePurposeSource definition
mysql.setval(regclass, bigint, boolean) → bigintSet 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.

Internal routines that format catalog values and construct result sets for MySQL clients.

amend_def_val

SignaturePurposeSource definition
mysql.amend_def_val(text) → textFormat a PostgreSQL default expression for MySQL metadata.SQL

amend_def_val_for_internal

SignaturePurposeSource definition
mysql.amend_def_val_for_internal(text) → textFormat a PostgreSQL default expression for MySQL metadata.SQL

column_domain

SignaturePurposeSource definition
mysql.column_domain(oid, integer) → oidFind the declared domain for a column.SQL

column_extra

SignaturePurposeSource definition
mysql.column_extra(oid, integer) → textBuild the Extra field in column metadata.SQL · C

column_generation

SignaturePurposeSource definition
mysql.column_generation(oid, integer) → textRead the generation expression for a column.SQL · C

decimal_column_type

SignaturePurposeSource definition
mysql.decimal_column_type(integer) → textDecode DECIMAL precision and scale from a type modifier.SQL · C

decimal_ps

SignaturePurposeSource definition
mysql.decimal_ps(integer) → integer[]Decode DECIMAL precision and scale from a type modifier.SQL

get_column_extra

SignaturePurposeSource definition
mysql.get_column_extra(text) → textBuild the Extra field in column metadata.SQL

get_column_key

SignaturePurposeSource definition
mysql.get_column_key(oid, text) → textClassify the index key for a column.SQL
mysql.get_column_key(text, text, text) → textClassify the index key for a column.SQL

get_func_def

SignaturePurposeSource definition
mysql.get_func_def(funcname text, procowner text, prorettype oid, proargtypes oidvector, proargnames text[], prosrc text) → textReconstruct a routine definition from its catalog fields.SQL

get_funcs_procs_parameters

SignaturePurposeSource definition
mysql.get_funcs_procs_parameters() → SETOF recordList routine parameters for metadata clients.SQL

get_mysql_proc_arg_mode

SignaturePurposeSource definition
mysql.get_mysql_proc_arg_mode(text) → textTranslate a PostgreSQL argument mode into a MySQL mode.SQL

get_mysql_type_name

SignaturePurposeSource definition
mysql.get_mysql_type_name(oid) → textMap a catalog type to its MySQL display name.SQL

get_proc_def

get_seq_in_index

SignaturePurposeSource definition
mysql.get_seq_in_index(text, int2vector) → smallintFind a column’s ordinal position in an index.SQL

index_key_name

SignaturePurposeSource definition
mysql.index_key_name(oid) → textExpose the MySQL index name or its key parts for SHOW INDEX.SQL · C

index_key_parts

SignaturePurposeSource definition
mysql.index_key_parts(oid, OUT seq integer, OUT column_name text, OUT sub_part integer) → SETOF recordExpose the MySQL index name or its key parts for SHOW INDEX.SQL · C

show_create_function

SignaturePurposeSource definition
mysql.show_create_function(text, text) → SETOF recordConstruct the definition displayed by SHOW CREATE.SQL

show_create_procedure

SignaturePurposeSource definition
mysql.show_create_procedure(text, text) → SETOF recordConstruct the definition displayed by SHOW CREATE.SQL

show_create_table

SignaturePurposeSource definition
mysql.show_create_table(text, text) → textConstruct the definition displayed by SHOW CREATE.SQL

show_create_table_impl

SignaturePurposeSource definition
mysql.show_create_table_impl(oid, oid, text, text) → textConstruct the definition displayed by SHOW CREATE.SQL

show_create_trigger

show_create_view

SignaturePurposeSource definition
mysql.show_create_view(text, text) → textConstruct the definition displayed by SHOW CREATE.SQL

show_create_view_impl

SignaturePurposeSource definition
mysql.show_create_view_impl(text, text) → textConstruct the definition displayed by SHOW CREATE.SQL · C

show_diagnostics

SignaturePurposeSource 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

SignaturePurposeSource definition
mysql.show_table_columns(text, text) → SETOF recordBuild the rows for SHOW COLUMNS.SQL

show_table_full_columns

SignaturePurposeSource definition
mysql.show_table_full_columns(text, text) → SETOF recordBuild the rows for SHOW COLUMNS.SQL

show_table_indexs

SignaturePurposeSource definition
mysql.show_table_indexs(text, text) → SETOF recordBuild the rows for SHOW INDEX.SQL

show_table_indexs_for_8

SignaturePurposeSource definition
mysql.show_table_indexs_for_8(text, text) → SETOF recordBuild the rows for SHOW INDEX.SQL