确定DB2中BLOB列的大小(kb) [英] Determine size in kb of a BLOB column in DB2
本文介绍了确定DB2中BLOB列的大小(kb)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
文件表包含 - File_Id和File_data(BLOB)
File table contains - File_Id and File_data(BLOB)
如何知道存储在File_data列中的二进制文件的大小。 长度
函数给出文件的长度,但如何知道大小(KB)。
how can I know the size of the binary file stored in File_data column. length
function gives the length of file but how to know the size in KB.
推荐答案
这个数字以字节为单位,以1024为单位,以KB为单位。
This gives a number in bytes, devide it by 1024 to get size in KB.
Select sum(BIGINT(length(blob_column)))
from table;
这篇关于确定DB2中BLOB列的大小(kb)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文