Today I Learned

hashrocket A Hashrocket project

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');
 This Is My Test String
(1 row)

See More #sql TILs
Looking for help? Hashrocket developers believe that data quality is as important as code quality. We enjoy all the challenges of relational databases, from finding the fastest index, to structuring data to fit the needs of an application. We're eager to share our experiences; check out PG Casts, our series of free PostgreSQL screencasts.