Amazon Redshift will no longer support the creation of new Python UDFs starting November 1, 2025.
If you would like to use Python UDFs, create the UDFs prior to that date.
Existing Python UDFs will continue to function as normal. For more information, see the
blog post
LOWER function
Converts a string to lowercase. LOWER supports UTF-8 multibyte characters, up to a maximum of four bytes per character.
Syntax
LOWER(string)
Argument
- string
-
A
VARCHARstring or any expression that evaluates to theVARCHARtype.
Return type
- string
-
The LOWER function returns a string that is the same data type as the input string. For example, if the input is a
CHARstring, the function will return aCHARstring.
Examples
The following example uses data from the CATEGORY table in the TICKIT sample database. For more information, see Sample database.
To convert the VARCHAR strings in the CATNAME column to lowercase, use the following example.
SELECT catname, LOWER(catname) FROM category ORDER BY 1,2;+-----------+-----------+ | catname | lower | +-----------+-----------+ | Classical | classical | | Jazz | jazz | | MLB | mlb | | MLS | mls | | Musicals | musicals | | NBA | nba | | NFL | nfl | | NHL | nhl | | Opera | opera | | Plays | plays | | Pop | pop | +-----------+-----------+