MySQL string case conversion function

 

 

There are two pairs of MySQL string case conversion functions: lower(), upper() and lcase(), ucase():

 

mysql> select lower('AAA');  
+--------------+  
| lower('AAA') |  
+--------------+  
| aaa          |  
+--------------+  
mysql> select upper('aaa');  
+--------------+  
|upper('aaa') |  
+--------------+  
| AAA          |  
+--------------+  
mysql> select lcase('AAA');  
+--------------+  
| lcase('AAA') |  
+--------------+  
| aaa          |  
+--------------+  
mysql> select ucase('aaa');  
+--------------+  
| ucase('aaa') |  
+--------------+  
| AAA          |  
+--------------+

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326612706&siteId=291194637