In MariaDB, the LIKE operator allows you to do pattern matching. It determines whether a specific character string matches a specified pattern. It returns either 1 (TRUE) or 0 (FALSE).
How RIGHT() Works in MariaDB
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.
How UPPER() Works in MariaDB
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().
How to Truncate Text with an Ellipsis in MariaDB
Sometimes you might find that the amount of text returned in a database column is too long. You might just want to return a short snippet of that text, followed by an ellipsis or three dots.
Fortunately, this is relatively easy to do in MariaDB.
How LEFT() Works in MariaDB
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.
How LOWER() Works in MariaDB
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().
How LOCATE() Works in MariaDB
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.