Created
June 12, 2012 13:12
-
-
Save cybermonde/2917421 to your computer and use it in GitHub Desktop.
MySQL - changer la casse
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
-- changer la casse du champ "prenom" de la table "membre" en minuscules sauf la première lettre | |
-- exemple : LAURENT devient Laurent | |
UPDATE `membre` SET `prenom`=CONCAT(LEFT(`prenom`,1),LOWER(SUBSTRING(`prenom`, 2))) | |
-- http://www.cybermonde.org |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment