nix, shell, perl, php, mysql and mac os x tips and tricks

Thursday, September 16, 2010

Capitalize the first letter of a sentence with MYSQL

UPDATE `categories` SET category_name = CONCAT(UCASE(SUBSTRING(`category_name`, 1,1)),LOWER(SUBSTRING(`category_name`, 2)))

No comments:

Post a Comment