Database Utilities (MOSC)

MOSC Banner

External table to load text with multiple delimiters

edited May 7, 2014 6:19AM in Database Utilities (MOSC) 7 commentsAnswered ✓

Hi folks

I have a text file to load via external table.

Sample file looks like this:

100,John,12345,'02/feb/2004',Boston;Producta:3200:186723:3456:0:35;Productb:1800:33535:4567:1:46

200,Mary,12344,NJ;Producta:1900:34355:1267:1:67;productc:3600:32434:2726:2:48

300,Jim,12333,'01/jan/2002',London;Productd:3200:46464:2626:4:89;Producte:3636:57575:1425:3:78;Productf:2567:56584:4:32

Result in table:

SNONameSalesmanIDSalesDateCitySales_Details
100John1234502-FEB-2004BostonSales_Collection_Type
200Mary12344NJ
300Jim1233301-JAN-2002London

Sales_Collection_Type (Ex for first Sales man only)

ColumnValue
Product_NameProducta
Product_ID3200
Batch_Serial186723
Batch_Qty3456
In_Stock0
In_PO35
Salesman_ID12345

ColumnValue
Product_NameProductb
Product_ID1800
Batch_Serial33535
Batch_Qty4567
In_Stock1
In_PO46
Salesman_ID

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center