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.

Did you find the page informational and useful? Share it using one of your favorite social sites.

Recommended Books & Training Resources

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