It is in a shared host and I access with Navicat. I have field with BLOB and I want to convert it into VARCHAR. I've tried in the design screen but everything was lost. I backed up.
相关问题
- Views base64 encoded blob in HTML with PHP
- sqlyog export query result as csv
- NOT DISTINCT query in mySQL
- MySQL: conduct a basic search
- Why sometimes there is one of more gap(s) in the v
try using this, I found it some time ago, you can convert it to
char
, not toVarchar2
orVarchar
, haven't test it yet. Try:MySQL treat data unique. Hence there is a difference between Blob and Text. Text simply means a text string stored as original, not in binary, whereas a blob is a text string stored as a binary.
I found this of MySQL's Website if you are trying to change your column to a different data type and keep the new data type in the database. Works great for what I need!
try with the below query