What is LCASE() in SQL?

The LCASE() function converts a string sent as a parameter to lowercase.

Figure 1 shows a visual representation of the LCASE() function.

Figure 1: Visual representation of LCASE() function

This method has the same functionality as the LOWER() method.

Syntax

LCASE(string)

Parameter

The LCASE() function takes in a string that needs to be converted to lowercase as a parameter.

Return value

The LCASE() function returns the lowercase version of a string sent as a parameter.

If a number is sent as a parameter, LCASE() returns the number unchanged.

Example

-- string
SELECT LCASE('HELLO');
-- number
SELECT LCASE(123);
New on Educative
Learn any Language for FREE all September 🎉
For the entire month of September, get unlimited access to our entire catalog of beginner coding resources.
🎁 G i v e a w a y
30 Days of Code
Complete Educative’s daily coding challenge every day in September, and win exciting Prizes.

Free Resources