Converting a String to HEX in SQL

后端 未结 5 1314
孤城傲影
孤城傲影 2020-12-01 21:34

I\'m looking for a way to transform a genuine string into it\'s hexadecimal value in SQL. I\'m looking something that is Informix-friendly but I would obviously prefer somet

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-01 22:20

    The following works in Sql 2005.

    select convert(varbinary, SomeStringColumn) from SomeTable
    

提交回复
热议问题