gpt4 book ai didi

SQLite 如何声明为字节数组?

转载 作者:IT王子 更新时间:2023-10-29 06:17:25 29 4
gpt4 key购买 nike

我有一个 SQLite 数据库。我想创建一个字段并将其声明为字节数组类型,但我不知道 SQLite 将什么称为字节数组类型。我该怎么做?

最佳答案

您正在寻找 BLOB .

来自网页:

BLOB - The value is a blob of data, stored exactly as it was input.

下面是创建一个包含两列的表的示例 - 一个 id 和一些数据,它是一个 BLOB:

CREATE TABLE t1 (id INTEGER PRIMARY KEY, data BLOB);

关于SQLite 如何声明为字节数组?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3280105/

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