Did you find this useful?
Socialize it today.


SQL LOWER, LCASE Function

Sunday, December 11, 2011

tags SQL

The LOWER function converts the value of a field to lowercase. The LOWER function is used for SQL Server. Other SQL platforms may use the LCASE function.

Employees Table

employeeIDemployeeNameage
1000John Smith40
1001Fred White27
1002Jane Scott53
1003Samuel Williams31


In this example, we want to find to see convert the employeeName field to lowercase in the query results.


Syntax

SELECT LOWER(column_name)
FROM Table


Example
SELECT LOWER(employeeName) as [employee name]
FROM employees


Results

employee name
john smith
fred white
jane scott
samuel williams

The SQL LOWER function is used to convert a given field in a table to lowercase characters.

Please help us spread the word by socializing it today!

email contact us

Did you find something wrong with the information on this page? Please take a moment to report it to us so that we can continue to improve the quality of the information on this site. Click here to report an issue with this page.



Recommended Books & Training Resources

Head First SQL: Your Brain on SQL A Learners Guide SQL Cookbook