Function Reference

LOWER

Converts all letters of a string to lower case.

PostgreSQL 17.9
LOWER(string)
string
Source string
text

Return value

A string in lower case by the rules of the database locale, including Cyrillic

Examples

String in lowercase

PostgreSQL 17.9
SELECT LOWER('Привет, PostgreSQL');
lower
привет, postgresql

Names in lowercase

PostgreSQL 17.9
SELECT member_name,
	LOWER(member_name) AS lower_name
FROM FamilyMembers;
member_namelower_name
Headley Quinceyheadley quincey
Flavia Quinceyflavia quincey
Andie Quinceyandie quincey
Lela Quinceylela quincey
Annie Quinceyannie quincey
Ernest Forresternest forrest
Constance Forrestconstance forrest
Wednesday Addamswednesday addams

Details

To compare strings ignoring case, convert both sides to the same case: WHERE LOWER(member_name) = LOWER('Andie QUINCEY'). For case-insensitive pattern matching there is the ILIKE operator.

See also

Where to learn