| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: Length of BLOB file
Hi Damir,
SELECT dbms_lob.getlength( a.lob_field ) AS blob_length FROM my_table a
WHERE .......;
will return the length of the blob in bytes.
So you can use dbms_lob.getlength. It is overloaded:
FUNCTION dbms_lob.getlength( lob_loc IN BLOB ) RETURN INTEGER;
FUNCTION dbms_lob.getlength( lob_loc IN CLOB CHARACTER SET ANY_CS ) RETURN
INTEGER;
FUNCTION dbms_lob.getlength( file_loc IN BFILE ) RETURN INTEGER;
HTH, Bastiaan Schaap
"Damir Vadas" <Damir.Vadas_at_trinity.de> wrote in message
news:9imp4u$ocf$00$1_at_news.t-online.com...
> Hi!
> How to see through SQL statement how much bytes does BLOB field occupied?
> Regards
> Damir!
>
>
>
Received on Fri Jul 13 2001 - 08:45:57 CDT
![]() |
![]() |