LOWER() - Convert String to Lower Case

Q

How to convert a string to lower case using the LOWER() function?

✍: FYIcenter.com

A

LOWER(str) is a MySQL built-in function that converts all characters of a given into lower case characters. For example:

SET @str = 'dba.FYIcenter.com';

SELECT LOWER(@str);
  -- +-------------------+
  -- | LOWER(@str)       |
  -- +-------------------+
  -- | dba.fyicenter.com |
  -- +-------------------+

Reference information of the LOWER() function:

LOWER(str): modstr
  Returns the string str with all characters changed to lowercase
  according to the current character set mapping, or NULL if str is NULL.
  The default character set is utf8mb4.

Arguments, return value and availability:
  str: Required. The string to be converted.
  modstr: Return value. The converted string.
  Available since MySQL 4.0.

Related MySQL functions:

 

LPAD() - Left-Padding String

LOCATE() - Locate Substring Starting at N

MySQL Functions on Character String Values

⇑⇑ MySQL Function References

2023-11-12, 210🔥, 0💬