select dbms_lob.length(col_lob) from tabname

解决方案 »

  1.   

    是这样改吗?
    select dbms_lob.length(FileContent)/1024 as FileContentSize
    from BaseMsgAttFile
    可是报错阿。
      

  2.   

    sorry
    select dbms_lob.GETLENGTH(FileContent)/1024 as FileContentSize
    from BaseMsgAttFile
      

  3.   

    我不知道你的出错信息。但我想你是没有打开文件。following:
    as dba do that
     create directory abc as 'c:\abac\wd\';
     grant abc to someuser
     
    then
     l_file := BFilename(p_directory, p_filename);
     dbms_lob.open(l_file);
      length := dbms_lob.getlength(l_file)
     dbms_lob.close(l_file);