Computers & ProgrammingBackend DevelopmentSQL

SQL LOWER, LCASE Functions

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.

Leave a Comment

Your email address will not be published.

Scroll to Top