How do I find the length (size) of a binary blob in sqlite

后端 未结 5 1697
被撕碎了的回忆
被撕碎了的回忆 2020-12-16 09:00

I have an sqlite table that contains a BLOB file, but need to do a size/length check on the blob, how do I do that?

According to some documentation I did find, using

5条回答
  •  一整个雨季
    2020-12-16 09:43

    Example of a select query that does this, getting the length of the blob in column myblob, in table mytable, in row 3:

    select length(myblob) from mytable where rowid=3;
    

提交回复
热议问题