SQLite 3 reference · String Functions

SQLite LOWER() Function

Return a copy of a string with ASCII letters converted to lowercase. Handy for case-insensitive comparisons.

SQLite 3

Create a free account to save this page, take notes and track your progress. Sign in

Syntax

lower(X)

Parameters

ParameterDescription
X The string (other values are converted to text).

Return value

Text, or NULL.

Examples

Lowercase a columnTry it yourself
SELECT lower(email) AS email
FROM customers
WHERE customer_id <= 3;
Compare without caring about caseTry it yourself
SELECT name
FROM customers
WHERE lower(country) = 'usa';

Output

name
Grace Hopper
Linus Torvalds
Margaret Hamilton
Barbara Liskov
Katherine Johnson

In other languages

Was this page helpful?