Home  >  Article  >  Database  >  How to use the UPPER() function in MySQL

How to use the UPPER() function in MySQL

王林
王林forward
2023-05-26 12:04:051571browse

UPPER()

UPPER(str) and UCASE(str) functions are used to convert strings to uppercase, for example:

SELECT UPPER('MySQL字符串函数') AS str1, UCASE('MySQL字符串函数') AS str2;
str1          |str2          |
--------------+--------------+
MYSQL字符串函数|MYSQL字符串函数|

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

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete