PostgreSQL - LOWER function Last Updated : 06 Aug, 2024 Comments Improve Suggest changes Like Article Like Report In PostgreSQL, the LOWER() function is a powerful tool used to convert strings, expressions, or values in a column to lowercase. This function is essential for text normalization, making data comparisons easier and more consistent. Let's look into the syntax, and usage of the LOWER() function in PostgreSQL with detailed examples.What is the LOWER() Function in PostgreSQL?The LOWER() function takes an input string and converts all the characters to lowercase. This is particularly useful when you need to perform case-insensitive comparisons or store data in a uniform format.SyntaxLOWER(string or value or expression)Parameterstring_or_value_or_expression: This argument can be a string, a value, or an expression that you want to convert to lowercase.PostgreSQL LOWER function ExamplesLet us take a look at some of the examples of LOWER Function in PostgreSQL to better understand the concept.Example 1: Converting Column Values to LowercaseThe 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:Explanation: Here, the LOWER() function converts the title column values to lowercase.Example 2: Converting a String to LowercaseThe below statement converts an upper case string to lower case:SELECT LOWER('GEEKSFORGEEKS');Output:Explanation: The LOWER() function converts the input string 'GEEKSFORGEEKS' to 'geeksforgeeks'.Important Points About the PostgreSQL LOWER() FunctionThe LOWER() function consistently converts all characters in the input to lowercase.The function is useful for making case-insensitive comparisons.Use the CAST function to convert non-string values to strings if necessary.Applicable to strings, expressions, and column values. Comment More infoAdvertise with us Next Article PostgreSQL - LOWER function R RajuKumar19 Follow Improve Article Tags : PostgreSQL PostgreSQL-function PostgreSQL-String-function Similar Reads PostgreSQL - LEAD Function In PostgreSQL, the LEAD() function is a powerful window function used to access a row that follows the current row at a specific physical offset. This function is generally employed to compare the value of the current row with the value of the next row following the current row.Let us better underst 3 min read PostgreSQL - LAG Function In PostgreSQL, the LAG() function is a powerful window function that allows you to access data from a previous row within the same result set. Itâs particularly useful for comparing values in the current row with values in the preceding row, making it ideal for analytical queries in PostgreSQL.For e 5 min read PostgreSQL MIN() Function The MIN() function in PostgreSQL is an essential aggregate function that returns the minimum value in a set of values. This function is highly useful in various data analysis and reporting tasks, allowing you to quickly identify the smallest values in your datasets. Let us better understand the MIN( 2 min read PostgreSQL - Function Overloading In PostgreSQL, it's possible to create multiple functions with the same name, provided that each function has different arguments. This feature, known as function overloading, allows you to define functions that perform similar operations but handle different types or numbers of inputs. PostgreSQL d 3 min read PostgreSQL - Function Parameters In PostgreSQL, functions provide an efficient way to encapsulate logic, perform calculations, and handle complex tasks within a database. A thorough understanding of PostgreSQL function parameters is essential for writing flexible and optimized functions.In this article, we will analyze different ty 5 min read PostgreSQL - POSITION Function The PostgreSQL POSITION() function is used to find the location of a substring within a string. This function is particularly useful for text manipulation and searching operations within your database.Let us better understand the POSITION Function in PostgreSQL from this article.SyntaxPOSITION(subst 2 min read PostgreSQL - Drop Function In PostgreSQL, the DROP FUNCTION statement is essential for removing functions from your database. Let us learn more about the syntax and the detailed examples to ensure you understand how to use this statement effectively.SyntaxDROP FUNCTION [IF EXISTS] function_name(argument_list) [CASCADE | RESTR 4 min read PostgreSQL - Function Parameter Modes PostgreSQL provides powerful features that allow developers to pass data between a calling program and a procedure or function. This is achieved through the use of parameters, which are essential for flexible and dynamic database operations. Parameters enable you to supply data to a function or proc 4 min read PostgreSQL - UPPER Function In PostgreSQL, the UPPER function is utilized to convert a string into uppercase. This function is handy when you need to standardize text data by converting it to a uniform case, especially for comparison or display purposes.Let us get a better understanding of the UPPER Function in PostgreSQL from 2 min read PostgreSQL - RIGHT Function The PostgreSQL RIGHT() function, allows you to extract a specified number of characters from the right side of a string. This function can be incredibly useful for various text-processing tasks.Let us get a better understanding of the RIGHT Function in PostgreSQL from this article.SyntaxRIGHT(string 2 min read Like