Jump to content

Changing the case (upper to capitalized) of 20,000+ rows of data at once?


izbryte

Recommended Posts

UPPER CASE

 

Capitalized

 

 

I think?

That's what I thought.  I took this out of the MySQL manual, so test it first but you can use a combination of UPPER and SUBSTRING functions to accomplish this:

SELECT CONCAT(UPPER(SUBSTRING(firstName, 1, 1)), LOWER(SUBSTRING(firstName FROM 2))) AS properFirstName

 

You would have to update the table and use REPLACE to actually change the values.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.