How to convert from varbinary to char/varchar in mysql

后端 未结 3 1686
一生所求
一生所求 2020-11-30 10:03

I have a field which is varbinary. It has already been populated. Now how do i convert varbinary to varchar so that I can use the data in the field for some other purpose. I

3条回答
  •  [愿得一人]
    2020-11-30 10:29

    The MySQL syntax that worked for me in a similar scenario to this is:

    select cast(binaryColumn as CHAR) from table_name
    

提交回复
热议问题