Open In App

PostgreSQL- LOWER function

In PostgreSQL, the LOWER function is used to convert a string, an expression, or values in a column to lower case.

Syntax: LOWER(string or value or expression)

Let’s analyze the above syntax:



Example 1:

The below statement uses LOWER function to get the full names of the films from the Film table of the sample database, ie, dvdrental:



SELECT LOWER(title) from film;

Output:

Example 2:

The below statement converts an upper case string to lower case:

SELECT LOWER('GEEKSFORGEEKS');

Output:

Article Tags :