Forked from maxwellcc/capitalize_person_names_ptBR.sql
Created
September 6, 2022 12:37
-
-
Save maxwellamaral/f2e385e61160d0035b1e4ceba9dbc9dd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| update tabela | |
| set nome = (replace(replace(replace(regexp_replace((initcap(nome)), '[^A-zÀ-ú]', ' ', 'g'),' Do ', ' do '), ' De ', ' de '), ' Da ', ' da ')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment