MySQL Forums
Forum List  »  Newbie

Re: Initial Caps
Posted by: John Winter
Date: January 30, 2007 02:47PM

Hi,

Try this query. I am sure there is an easier way to write this query but it should work.

UPDATE contacts set fname = concat(upper(mid(fname ,1,1)) ,lower(mid(fname ,2,length(fname ) -1))), lname = concat(upper(mid(lname ,1,1)) ,lower(mid(lname ,2,length(lname ) -1)))

John

Options: ReplyQuote


Subject
Written By
Posted
January 30, 2007 02:20PM
Re: Initial Caps
January 30, 2007 02:47PM
January 30, 2007 03:16PM
January 31, 2007 08:51AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.