Created
November 6, 2013 03:45
-
-
Save devacto/7330538 to your computer and use it in GitHub Desktop.
MySQL function to change the first letter into upper case.
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
CREATE FUNCTION ucfirst(x varchar(255)) returns varchar(255) | |
return concat( upper(substring(x,1,1)),lower(substring(x,2)) ); |
Author
devacto
commented
Nov 6, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment