oracle中:

  1. select  dbms_lob.getLength(zp)  from  kk.kkbj     

select dbms_lob.getLength(zp) from kk.kkbj

 

也可以在后边加where条件

这条语句可以查看kk.kkbj表中类型为blob的zp这个字段

在sql plus里执行这条语句的效果是这样的

Sql代码
  1. SQL>   select  dbms_lob.getLength(zp)  from  kk.kkbj  ;    

SQL> select dbms_lob.getLength(zp) from kk.kkbj ;

 

DBMS_LOB.GETLENGTH(ZP)
----------------------
                                97548
                                32943
                                30213

SQL>

查到了3条blob记录的大小

HSQLDB:

BIT_LENGTH

BIT_LENGTH ( <string value expression> )

BIT_LENGTH can be used with character, binary and bit strings. It return a BIGINT value that measures the bit length of the string. (Foundation)

See also CHARACTER_LENGTH and OCTET_LENGTH.

相关文章:

  • 2022-01-10
  • 2021-12-29
  • 2022-02-15
  • 2022-12-23
  • 2021-12-24
  • 2021-07-05
  • 2022-12-23
  • 2022-02-28
猜你喜欢
  • 2021-05-31
  • 2022-12-23
  • 2022-01-12
  • 2022-01-09
  • 2022-01-02
  • 2022-02-01
相关资源
相似解决方案