How do I convert from BLOB to TEXT in MySQL?

Gwilym picture Gwilym · Jun 4, 2009 · Viewed 369.1k times · Source

I have a whole lot of records where text has been stored in a blob in MySQL. For ease of handling I'd like to change the format in the database to TEXT... Any ideas how easily to make the change so as not to interrupt the data - I guess it will need to be encoded properly?

Answer

Yuma picture Yuma · Nov 19, 2010

That's unnecessary. Just use SELECT CONVERT(column USING utf8) FROM..... instead of just SELECT column FROM...