synapsevampire
Programmer
Oracle 9.
I have a csv file that has numerous values in one field, in particular email addresses, as you would expect to find in a TO, FROM, CC or BCC field:
lellison@oracle.com,gwbush@whitehouse.com
What I need help with is how I might create an additional row for each of these, along with their respective field of origin as a type field (TO, FROM, CC, BCC) along with the referenceid, which is another column in the table.
If this cannot be done using SQL Loader, does anyone have an example of the PL/SQL code that would allow me to parse this and insert each into a row?
Thanks in advance,
-k
I have a csv file that has numerous values in one field, in particular email addresses, as you would expect to find in a TO, FROM, CC or BCC field:
lellison@oracle.com,gwbush@whitehouse.com
What I need help with is how I might create an additional row for each of these, along with their respective field of origin as a type field (TO, FROM, CC, BCC) along with the referenceid, which is another column in the table.
If this cannot be done using SQL Loader, does anyone have an example of the PL/SQL code that would allow me to parse this and insert each into a row?
Thanks in advance,
-k