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 to Code
Learn any Language as a beginner
Develop a human edge in an AI powered world and learn to code with AI from our beginner friendly catalog
🏆 Leaderboard
Daily Coding Challenge
Solve a new coding challenge every day and climb the leaderboard

Free Resources