Home > Database > Mysql Tutorial > How to use the LOWER() function in MySQL

How to use the LOWER() function in MySQL

PHPz
Release: 2023-06-01 17:28:06
forward
1307 people have browsed it

LOWER()

LOWER(str) and LCASE(str) functions are used to convert strings to lowercase, for example:

SELECT LOWER('MySQL字符串函数') AS str1, LCASE('MySQL字符串函数') AS str2;
str1          |str2          |
--------------+--------------+
mysql字符串函数|mysql字符串函数|
Copy after login

The MySQL case conversion function does not support binary strings (BINARY, VARBINARY, BLOB)), which can be converted into non-binary strings before processing. For example:

SELECT LOWER(BINARY 'MySQL字符串函数') AS str1,
       LOWER(CONVERT(BINARY 'MySQL字符串函数' USING utf8mb4)) AS str2;
str1               |str2          |
-------------------+--------------+
MySQLå­ ç¬¦ä¸²å ½æ °|mysql字符串函数|
Copy after login

The above is the detailed content of How to use the LOWER() function in MySQL. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template