In MariaDB, LPAD()
is a built-in string function that pads the left part of a string with a certain number of characters.
For example, you can use LPAD()
to pad the left part of a string with spaces. Or you could pad a number with leading zeros.
In MariaDB, LPAD()
is a built-in string function that pads the left part of a string with a certain number of characters.
For example, you can use LPAD()
to pad the left part of a string with spaces. Or you could pad a number with leading zeros.
In MariaDB, RIGHT()
is a built-in string function that returns a given number of characters from the rightmost part of a string.
RIGHT()
accepts two arguments; the string, and the number of characters to return from the right part of that string.
In MariaDB, UCASE()
is a built-in string function that returns its string argument with all characters changed to uppercase.
The result is returned in the current character set mapping. The default is latin1
(cp1252 West European).
UCASE()
is a synonym for UPPER()
.
In MariaDB, UPPER()
is a built-in string function that returns its string argument with all characters changed to uppercase.
The result is returned in the current character set mapping. The default is latin1
(cp1252 West European).
Another MariaDB function, UCASE()
is a synonym for UPPER()
.
In MariaDB, LCASE()
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).
LCASE()
is a synonym for LOWER()
.
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.