23 Jul, 2007
Convert to sentence case in MySQL
UPDATE `tablename` SET `fieldname` = CONCAT(UCASE(SUBSTRING(`fieldname`,1,1)),'', LCASE(SUBSTRING(`fieldname`,2,LENGTH(`fieldname`)))) WHERE `id` = 1
Love what you've just read? Subscribe to our newsletter to receive tips, resources and special offers related to web development & design.
Other similar posts that you might be interested in:
- Apending text to a field which isn’t empty (mysql)
- Delete rows older than x days or x months in MySQL
- Remove the first character in mysql
- 10 Useful Javascript Snippets for your mobile websites
- 10 most useful Javascript snippets from snipplr
- How to check if div exists in jQuery
- Find and replace text in mysql
Hello! Welcome to Web development blog! My name is Ei Sabai and on this blog, I write about web development, mobile app development, latest web technologies and the likes. Read more 

