merge fileds [message #73528] |
Mon, 17 May 2004 04:32 |
akif güngör
Messages: 4 Registered: April 2004
|
Junior Member |
|
|
i have this ascii file:
field1|field2|field3|field4
1020|COMPANY|USA|LA
54132|SCHOOL|EUROPA|LONDRA
5464|GOVERN|ASIA|ISTANBUL
my table
create table deneme
(
o_field1 NUMBER(20),
o_field2 VARCHAR2(20)
)
i want to insert field1 and field3 same column and field2 and field4 same column to my table.i mean:
SQL> select * from my_table;
o_field1 o_field2
________ _________
1020 USA COMPANY LA
54132 EUROPA SCHOOL LONDRA
5464 ASIA GOVERN ISTANBUL
how do i must write control file.
thanks, sorry my english.
|
|
|
Re: merge fileds [message #73532 is a reply to message #73528] |
Mon, 17 May 2004 23:21 |
Himanshu
Messages: 457 Registered: December 2001
|
Senior Member |
|
|
Hi,
You can simply create a Temporary table with Cols Field1,2 3 & 4 & load data into it.
Then from Temp table populate your table as follows:
Insert into my table values(Feild1||feild2,Feild3||feild4);
Regards
Himanshu
|
|
|
|