Skip to content

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
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