Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

reading a clob line by line

francy77Oct 16 2019 — edited Oct 22 2019

Hi, all,

I'm using oracle 12c, and i should want to know what is the best way of reading a clob, line by line and split the line to insert it in a table:

Try to explain better:

I have a clob like this:

KEY;;;DETINARY;;;ADDRESS;;;CAP;;;CITY;;;REFERENCE;;;VAL

1;;;rossi gialloi;;;Via Nino Oxia, 6;;;50124;;;firenze;;;Prova 1;;;shshs ydydyd yfyfyf

1;;;rossi verde;;;Via Nino Oxia, 6;;;50124;;;firenze;;;Prova 1;;;shshs ydydyd yfyfyf

1;;;rossi rosso;;;Via Nino Oxia, 6;;;50124;;;firenze;;;Prova 1;;;shshs ydydyd yfyfyf

i need to read every line and insert every field (separated by ;;;) in a field of a table;

The clob can contains many row.

thanks

Comments
Post Details
Added on Oct 16 2019
13 comments
4,014 views