In this PostgreSQL post explains how to use the PostgreSQL initcap function with syntax and examples.
The PostgreSQL initcap function converts the first letter of each word to uppercase and all other letters are converted to lowercase.
The syntax for the initcap function in PostgreSQL is:
initcap( string )
The string to convert.
The initcap function can be used in the following versions of PostgreSQL:
Let's look at some PostgreSQL initcap function examples and explore how to use the initcap function in PostgreSQL.
For example:
postgres=# SELECT initcap('This is an example by AODBA.com.');
initcap
-----------------------------------------
This Is An Example By AODBA.Com.
(1 row)
postgres=# SELECT initcap('Learn PostgreSQL with aodba.Com!');
initcap
----------------------------------------
Learn Postgresql With Aodba.Com!
(1 row)