插入语句 用binary转换函数可将字符串转为二进制

insert into mytable (id, bin) values(1, binary('abcdef'))



查询语句 用cast进行类型转换

select id, cast(bin as char) as bintext from mytable

 

相关文章:

  • 2021-10-26
  • 2021-08-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
  • 2021-09-06
猜你喜欢
  • 2021-09-15
  • 2022-01-16
  • 2022-12-23
  • 2022-02-25
  • 2022-12-23
  • 2022-12-23
  • 2021-10-06
相关资源
相似解决方案