SQLite lower() function

Savigo
You organize your data. Now organize your savings.
Set savings goals, track your progress, and stay on course.
Get Savigo for iPhone 

The SQLite lower() function returns a new string with all ASCII characters converted to lowercase. For handling Unicode characters, you can utilize the ICU extension of this function.

Syntax #

lower(string)

Arguments #

The lower() function accepts one argument that has the text data type.

string

The input string will be converted to lowercase.

Return Type #

TEXT

Examples #

The following statement uses the lower() function to return the lowercase of a string:

SELECT lower('SQLite LOWER');

Output:

lower('SQLite LOWER')
---------------------
sqlite lower

The following query selects the first name, last name, and lowercase email of the employees in the employees table.

SELECT
  lastname,
  firstname,
  lower(email)
FROM
  employees;
SQLite LOWER example

See Also #

upper() function

Was this tutorial helpful?