Skip to main content

Overview

The LOWER() function returns a given string, an expression, or values in a column in all lowercase letters. The syntax of the function is illustrated below:
It accepts input as a string and returns the text in the lowercase alphabet. Special Cases: If there are characters in the input which are not of type string, they remain unaffected by the LOWER()function.
We support Unicode so that the ß is equivalent to the string ss.

Examples

#Case 1: Basic LOWER() function

The following basic query converts the given string in all lowercase alphabets:
The final output will be as follows:

#Case 2: LOWER() function using columns

Let’s see how the LOWER() function works using an example with columns. We have a personal_details table containing columns id, first_name, last_name, and gender of retail store employees.
The above query will show the following table:
Let’s assume that we want to convert the first and last names of employees with id numbers 2, 4, and 5 to all lowercase letters, which can be done using the following query:
The output displays the first and last names of employees with the specified ids in lowercase letters: