PostgreSQL 18 reference · String Functions

PostgreSQL LOWER() Function

Convert a string to lowercase using the database's locale, so letters such as É and Ü work too.

PostgreSQL 18

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

Syntax

lower(string)

Parameters

ParameterDescription
string The input text.

Return value

Lowercase text.

Examples

Lowercase a column
SELECT lower(name) AS name FROM customers WHERE customer_id <= 2;

Output

     name
--------------
 ada lovelace
 alan turing
(2 rows)

Run this on your computer — see “Get Started” for setup.

Not just ASCII
SELECT lower('ÉCOLE Ünïcode') AS result;

Output

    result
---------------
 école ünïcode
(1 row)

Run this on your computer — see “Get Started” for setup.

In other languages

Was this page helpful?