mysql 二进制的读取与写入
发布日期:2021-05-09 01:21:49 浏览次数:17 分类:博客文章

本文共 151 字,大约阅读时间需要 1 分钟。

插入语句 用binary转换函数可将字符串转为二进制insert into mytable (id, bin) values(1, binary('abcdef'))查询语句 用cast进行类型转换select id, cast(bin as char) as bintext from mytable

 

上一篇:ActiveMQ 持久订阅者,执行结果与初衷相违背,验证离线订阅者无效,问题解决
下一篇:mysql 授权远程连接

发表评论

最新留言

感谢大佬
[***.8.128.20]2025年05月03日 07时08分42秒