Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

SQL Letter Case Conversion Function UPPER (), UCASE (), LOWER (), and LCASE()


May 16, 2021 SQL


Table of contents


SQL letter case conversion functions UPPER(s), UCASE (s), LOWER (s), and LCASE (s)


1, LOWER(s) function and LCASE(s) function

The LOWER(s) or LCASE(s) function can convert all letter characters in string s into lowercase letters.

Instance:

Use the LOWER function or the LCASE function to convert all letter characters in a string to lowercase. The SQL statement is as follows:

SELECT LOWER('WWW.W3Cschool.cn'),LCASE('W3CSCHOOL.CN');
The results are as follows:
SQL Letter Case Conversion Function UPPER (), UCASE (), LOWER (), and LCASE()

2, UPPER(s) function and UCAS (s) function

The UPPER(s) or UCASE(s) function can convert all letter characters in string s into capital letters.
Instance:
Use the UPPER function or the UCASE function to convert all letter characters in a string to capitals. T he SQL statement is as follows:
SELECT UPPER('www.w3cschool.cn'),UCASE('W3Cschool');
The results are as follows:
SQL Letter Case Conversion Function UPPER (), UCASE (), LOWER (), and LCASE()

No matter which function you use, it doesn't make much difference, so you can select a function to use as needed