w3resource
SQL Tutorial

SQL LOWER() function

LOWER() function

The SQL LOWER() function is used to convert all characters of a string to lower case.

Syntax:

LOWER(string)

PostgreSQL, MySQL, SQL Server and Oracle

All of above platforms support the SQL syntax of LOWER().

Parameters:

Name Description
string A string.

Pictorial Presentation:

SQL LOWER() pictorial presentation

Application of LOWER()

In the subsequent pages, we have discussed how to apply LOWER() with various SQL clauses. we have used Oracle 10g Express Edition.

Example:

If we want to get the string 'TESTING FOR LOWER FUNCTION' in lower case from the DUAL table, the following SQL statement can be used :

SELECT LOWER('TESTING FOR LOWER FUNCTION') 
AS Testing_Lower 
FROM dual;

In the above example, 'Testing_Lower' is a column alias which will come as a column heading to the output.

Output:

TESTING_LOWER
--------------------------
testing for lower function

See our Model Database

Here is a new document which is a collection of questions with short and simple answers, useful for learning SQL as well as for interviews.

Practice SQL Exercises

Want to improve the above article? Contribute your Notes/Comments/Examples through Disqus.

Previous: Character Function
Next: UPPER