如何 select 只有部分 BLOB 列
How to select only part of BLOB column
如何在 SQLite 数据库中从 BLOB 字段中 select 仅 1kb?
我想象它是这样的
SELECT PART(`field_name`, startIndex, bytes) AS data FROM `table` ....
这可能吗?
使用substr():
The substr(X,Y,Z) function returns a substring of input string X that begins with the Y-th character and which is Z characters long.
If X is a BLOB then the indices refer to bytes.
如何在 SQLite 数据库中从 BLOB 字段中 select 仅 1kb?
我想象它是这样的
SELECT PART(`field_name`, startIndex, bytes) AS data FROM `table` ....
这可能吗?
使用substr():
The substr(X,Y,Z) function returns a substring of input string X that begins with the Y-th character and which is Z characters long. If X is a BLOB then the indices refer to bytes.