Another option is to read the file line by line, analyze the fields in the line using something like REGEXP_REPLACE, and update the corresponding lines. You can parse comma delimited strings as shown below:
SELECT TRIM(REGEXP_REPLACE(strLine, '(.*),.*,.*', '\1')), TRIM(REGEXP_REPLACE(strLine, '.*,(.*),.*', '\1')), TRIM(REGEXP_REPLACE(strLine, '.*,.*,(.*)', '\1')) INTO strID, strField1, strField2 FROM DUAL;
This is useful if your site does not allow the use of external tables.
Share and enjoy.
Bob jarvis
source share