convert hex string back to binary

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mark S Pryor

    #1

    convert hex string back to binary

    Hello,

    Using MySQL 4.017 on Win2k sp3:

    using MySQL built-ins: how can I convert a
    value stored as a hexadecimal string back to
    a binary string while logged into the shell?
    [color=blue]
    >set @t1=616263;
    >select 0x616263;[/color]

    how can I turn @t1 back into 0x616263? What is
    the syntax? I tried
    select concat('0x', @t1);
    this returns an unevaluated literal!

    tia,
    msp


Working...