How to display blob value using x'abc' binary string literal syntax?

前端 未结 1 1616
借酒劲吻你
借酒劲吻你 2020-12-03 13:12

You can easily enter a blob value using the x\'abc\' syntax, but is there a way to display it that way too? As shown below, selecting directly, or implicitly converting to a

相关标签:
1条回答
  • 2020-12-03 14:15
    select quote(uid) from blobs
    

    returns:

    X'0123456789ABCDEF0123456789ABCDEF'
    

    and if you really need it in lowercase, you can use:

    select lower(quote(uid)) from blobs
    
    0 讨论(0)
提交回复
热议问题