Skip to content

Instantly share code, notes, and snippets.

@AdamMadrzejewski
Created January 17, 2015 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdamMadrzejewski/2af70aa5ff775f99121f to your computer and use it in GitHub Desktop.
Save AdamMadrzejewski/2af70aa5ff775f99121f to your computer and use it in GitHub Desktop.
Capitaliza all words in a column
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