postgresqlHow do I convert a string to lowercase in PostgreSQL?
To convert a string to lowercase in PostgreSQL, you can use the LOWER
function. This function takes a string as its argument and returns the same string in all lowercase letters.
For example, the following code block:
SELECT LOWER('STRING');
will return the following output:
string
The LOWER
function can be used in a variety of contexts, such as in a SELECT
clause, in a WHERE
clause, and in a GROUP BY
clause.
The syntax for the LOWER
function is as follows:
LOWER(string)
Where string
is the string to be converted to lowercase.
Here are some useful links for more information on the LOWER
function:
More of Postgresql
- How can I use PostgreSQL and ZFS snapshots together?
- How can I set a PostgreSQL interval to zero?
- How can I troubleshoot zero damaged pages in PostgreSQL?
- How can I retrieve data from PostgreSQL for yesterday's date?
- How do I use PostgreSQL variables in my software development project?
- How can Zalando use PostgreSQL to improve its software development?
- How can I use PostgreSQL's "zero if null" feature?
- How do I use PostgreSQL's XMLTABLE to parse XML data?
- How do I use PostgreSQL and ZFS together?
- How can I extract the year from a PostgreSQL timestamp?
See more codes...