In MariaDB, LEFT()
is a built-in string function that returns a given number of characters from the leftmost part of a string.
LEFT()
accepts two arguments; the string, and the number of characters to return from the left part of that string.
In MariaDB, LEFT()
is a built-in string function that returns a given number of characters from the leftmost part of a string.
LEFT()
accepts two arguments; the string, and the number of characters to return from the left part of that string.
In MariaDB, LOWER()
is a built-in string function that returns its string argument with all characters changed to lowercase.
The result is returned in the current character set mapping. The default is latin1
(cp1252 West European).
Another MariaDB function, LCASE()
is a synonym for LOWER()
.
In MariaDB, LOCATE()
is a built-in string function that returns the position of the first occurrence of a substring within another string.
LOCATE()
is similar to the INSTR()
function, except that LOCATE()
provides the option of specifying a starting position for the search. Also, the argument order is reversed between these two functions.
In MariaDB, INSTR()
is a built-in string function that returns the position of the first occurrence of a substring within another string.
INSTR()
is similar to the LOCATE()
function, except that LOCATE()
provides the option of specifying a starting position for the search. Also, the argument order is reversed between these two functions.
In MariaDB, INSERT()
is a built-in string function that allows you to insert a substring into another string.
In MariaDB, UNHEX()
is a built-in string function that performs the inverse operation of the HEX()
function.
Whereas, the HEX()
function returns a hexadecimal representation of a given string, the UNHEX()
function returns the string representation of a given hexadecimal value.
Specifically, UNHEX()
interprets each pair of hexadecimal digits in its argument as a number, and then converts it to the character represented by the number.
The result is returned as a binary string.
Continue readingIn MariaDB, HEX()
is a built-in string function that returns a hexadecimal string representation of its argument.
In MariaDB, FORMAT()
is a built-in string function that formats and returns the given number as a string.
It requires two arguments, and accepts an optional third argument. The first is the number you want to format, the second is the decimal position, and the (optional) third is the locale.
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).