SQL LOWER() function
The SQL LOWER() function is used to convert all characters of a string to lower case.
PostgreSQL, MySQL, SQL Server and Oracle
All of above platforms support the SQL syntax of LOWER().
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.
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.
TESTING_LOWER -------------------------- testing for lower function
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.
- Weekly Trends
- Python Interview Questions and Answers: Comprehensive Guide
- Scala Exercises, Practice, Solution
- Kotlin Exercises practice with solution
- MongoDB Exercises, Practice, Solution
- SQL Exercises, Practice, Solution - JOINS
- Java Basic Programming Exercises
- SQL Subqueries
- Adventureworks Database Exercises
- C# Sharp Basic Exercises
- SQL COUNT() with distinct
- Java Collection Exercises
- SQL COUNT() function
- SQL Inner Join