作者热门文章
- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
只是一个简单的问题..
在下面提到的两个选项中,如何存储到 MySQL 中的 varbinary
列?
public_key = '67498930589635764678356756719'
或
public_key = 67498930589635764678356756719
第二种方法行得通吗?我正处于在生产服务器上工作的紧急时刻,不想在上面进行试验。
感谢您的帮助。
最佳答案
可以使用引号插入可打印数据。可以使用十六进制值插入不可打印的数据。即:
INSERT INTO Table(VarBinaryColumn) VALUES('Printable data') -- Will be stored as binary representation using the charset of the operating system
INSERT INTO Table(VarBinaryColumn) VALUES(0x12345) -- Non-printable binary data
关于mysql - 如何在 MySQL 中存储 varbinary?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2182884/
我是一名优秀的程序员,十分优秀!