Skip to content
Advertisement

Postgres SQL to convert first letter after Mc to upper case

I have data in Postgres SQL, something like this

I am trying to convert first letter after Mc to uppercase , something as below

I am using initcap function as below, but its not working as expected

Appreciate any help!

Advertisement

Answer

Use above query it will give desired results.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement