Capitalize the First Letter of Each Word in PSQL
The initCap
function in Posgtres will capitalize each word of a string for you. V convenient. I was surprised to find this was a thing :)
=> select initCap('this IS mY test STRING');
initcap
------------------------
This Is My Test String
(1 row)
https://www.postgresql.org/docs/15/functions-string.html
Tweet