The LCASE function (alias LOWER) converts all uppercase letters in a string to lowercase.
LCASE(<str>) LOWER(<str>)
| Parameter | Description |
|---|---|
<str> | The string to convert to lowercase. Type: VARCHAR |
Returns VARCHAR type, representing the string after conversion to lowercase.
Conversion rules:
Special cases:
SELECT LOWER('AbC123'), LCASE('AbC123');
+-----------------+-----------------+ | LOWER('AbC123') | LCASE('AbC123') | +-----------------+-----------------+ | abc123 | abc123 | +-----------------+-----------------+
SELECT LOWER('Hello World!'), LCASE('TEST@123');
+----------------------+------------------+ | LOWER('Hello World!') | LCASE('TEST@123') | +----------------------+------------------+ | hello world! | test@123 | +----------------------+------------------+
SELECT LOWER(NULL), LCASE(NULL);
+-------------+-------------+ | LOWER(NULL) | LCASE(NULL) | +-------------+-------------+ | NULL | NULL | +-------------+-------------+