In MariaDB, FROM_BASE64()
is a built-in string function that decodes the given base-64 encoded string.
It returns the result as a binary string.
Continue readingIn MariaDB, FROM_BASE64()
is a built-in string function that decodes the given base-64 encoded string.
It returns the result as a binary string.
Continue readingIn MariaDB, TO_BASE64()
is a built-in string function that converts its string argument to its base-64 encoded form.
The TO_BASE64()
function returns its result as a character string in the connection character set and collation (see how to get your connection’s collation).
In MariaDB, EXPORT_SET()
is a built-in string function that returns a string that reflects the bits in the specified value. For every bit set in the specified value, you get an “on” string and for every bit not set in the value, you get an “off” string.
It accepts a minimum of three arguments, plus two optional arguments.
Continue readingIn MariaDB, FIND_IN_SET()
is a built-in string function that returns the index position where the given pattern occurs in the specified string list.
It accepts two arguments. The first is the pattern you want to search for. The second argument is a string containing comma-separated values for which to match the pattern against.
Continue readingIn MariaDB, FIELD()
is a built-in string function that returns the index position of the string or number matching the specified pattern.
It accepts two or more arguments. The first is the pattern you want to search for. All subsequent arguments are the strings or numbers for which to match the pattern against.
Continue readingIn MariaDB, ELT()
is a built-in string function that accepts a numeric argument, followed by a series of string arguments. It then returns the string that corresponds to the given numeric position provided by the first argument.
In MariaDB, CONCAT_WS()
is a built-in string function that stands for Concatenate With Separator.
CONCAT_WS()
performs a string concatenation on its arguments, with the first argument being the separator for the remaining arguments.
Concatenation is the operation of joining two or more strings end-to-end.
CONCAT_WS()
accepts two or more arguments (although providing just two arguments would result in nothing being concatenated, due to the first argument being the separator, and the second being a single string to be concatenated with… nothing else).
In MariaDB, CONCAT()
is a built-in string function that performs a string concatenation on its arguments. It returns the string that results from concatenating its arguments.
Concatenation is the operation of joining two or more strings end-to-end.
CONCAT()
accepts one or more arguments, all of which are returned as a single concatenated string.
In MariaDB, OCTET_LENGTH()
is a built-in string function that returns the length of the given string argument, measured in octets (bytes).
OCTET_LENGTH()
is a synonym for LENGTHB()
.
It’s also a synonym for LENGTH()
when not in Oracle mode (LENGTH()
behaves differently in Oracle mode).
In MariaDB, LENGTHB()
is a built-in string function that returns the length of the given string argument, measured in bytes.