Is there a MySQL command to convert a string to lowercase?

Thomas Owens picture Thomas Owens · Oct 21, 2008 · Viewed 95.9k times · Source

I have a MySQL database of keywords that are presently mixed-case. However, I want to convert them all to lowercase. Is there an easy command to do this, either using MySQL or MySQL and PHP?

Answer

Paul Dixon picture Paul Dixon · Oct 21, 2008
UPDATE table SET colname=LOWER(colname);