Created
January 17, 2015 16:20
-
-
Save AdamMadrzejewski/2af70aa5ff775f99121f to your computer and use it in GitHub Desktop.
Capitaliza all words in a column
This file contains 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 `sample_table` | |
SET city = CONCAT(UCASE(LEFT(city, 1)), | |
SUBSTRING(LCASE(city), 2)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment