gpt4 book ai didi

mysql - 如何在 MySQL 中存储 varbinary?

转载 作者:可可西里 更新时间:2023-11-01 06:37:05 25 4
gpt4 key购买 nike

只是一个简单的问题..

在下面提到的两个选项中,如何存储到 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com