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
Syntax
lower(X)
Parameters
| Parameter | Description |
|---|---|
X |
The string (other values are converted to text). |
Return value
Text, or NULL.
Examples
SELECT lower(email) AS email
FROM customers
WHERE customer_id <= 3;
Output
email [email protected] [email protected] [email protected]
SELECT name
FROM customers
WHERE lower(country) = 'usa';
Output
name Grace Hopper Linus Torvalds Margaret Hamilton Barbara Liskov Katherine Johnson
In other languages
LOWER()· PostgreSQL
Related
UPPER()· Return a copy of a string with ASCII letters converted to uppercase. Letters such as é are left unchanged.LIKE· Match a string against a pattern with % (any run of characters) and _ (one character). Case-insensitive for ASCII.- SQL String Functions · tutorial