How do I convert BLOB into VARCHAR in MySQL?

后端 未结 3 713
有刺的猬
有刺的猬 2020-12-16 19:15

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 b

3条回答
  •  佛祖请我去吃肉
    2020-12-16 20:18

    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!

    ALTER TABLE table_name CHANGE col col1 varchar(100)
    

提交回复
热议问题