I have a LONG column named FileSize in a table called Files.
To achieve the objective, I did the following :
I wrote this PL/SQL script to find the size
declare
long_var LONG:=0;
begin
dbms_output.put_line(length(long_var));
execute immediate 'SELECT FILESIZE INTO long_var FROM FILES';
dbms_output.put_line(length(long_var));
end;
But it throws an error :
ORA-00905: missing keyword
ORA-06512: at line 5
I was doing the following as I saw thw following on the link given below: http://www.techonthenet.com/oracle/questions/long_length.php
Can some one suggest what I am doing wrong as I can not identify the key word I am missing
Thanks.