Skip to content

Instantly share code, notes, and snippets.

@cybermonde
Created June 12, 2012 13:12
Show Gist options
  • Save cybermonde/2917421 to your computer and use it in GitHub Desktop.
Save cybermonde/2917421 to your computer and use it in GitHub Desktop.
MySQL - changer la casse
-- 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