I am trying to insert documents, which present one folder in local system to oracle table. I am getting error as below:
Error (15,7): PLS-00103: Encountered the symbol " " when expecting one of the following: constant exception table LONG_ double ref char time timestamp interval date binary national character nchar
DECLARE
l_bfile BFILE;
l_blob BLOB;
BEGIN
INSERT INTO member_document
VALUES (
SELECT empty_blob(), jf.file_created, jf.file_file_extension
FROM FILES JF
JOIN MEMBER M ON M.MIG_OLD_ID=JF.PERSON_ID
WHERE JF.FILE_ID = 1054
)
RETURN document_file INTO l_blob;
l_bfile := BFILENAME(exampledir, '000d779789.pdf');
dbms_lob.fileopen(l_bfile, dbms_lob.file_readonly);
dbms_lob.loadfromfile(l_blob, l_bfile, dbms_lob.getlength(l_bfile));
dbms_lob.fileclose(l_bfile);
COMMIT;
END;
Can anyone please help me.
/
inbetween? – Alex Poole