How to insert data into two tables using single control file?
Answers were Sorted based on User's Feedback
Answer / rajiv
LOAD DATA
APPEND
DISCARDMAX 9999999
INTO TABLE UPLOAD_HDR
WHEN agreementno='~'
FIELDS TERMINATED BY ","
(
AGREEMENTNO CHAR(20),
FILENAME CHAR(30),
BATCHID constant 112)
INTO TABLE UPLOAD_TMP
WHEN agreementno <>'~'
FIELDS TERMINATED BY ","
TRAILING NULLCOLS
(
AGREEMENTNO POSITION(1) CHAR(20),
EMI_AMT INTEGER EXTERNAL(16),
BATCHID constant 112)
Is This Answer Correct ? | 10 Yes | 1 No |
Answer / emmanuel - tcs
A Small changes in above control file
Add below insert stmt to above CTL File
Insert into Table Tab_name_1 -- This is for one table
Insert into Table Tab_name_2 -- This is for Second Table
First mention first table column and mention second table
columns
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / bobbyiiit
Using "When"
we use "When" condition to load data into multiple tables.
Syntax:
Load Data infile '&1'
Insert into table table1
(
.
.
.
.
)
Insert into table table2
when <condiation>
(
.
.
.
);
Is This Answer Correct ? | 1 Yes | 0 No |
in which tables the transaction details stored? at least two.
how can we get odd numbered pages in output of a report
Can you define an erp system?
In support project one ticket alloted which steps follows manualy tell me ?
What multi org tables . example - difference between app table non all table . Po_header and po_headers_all
How to compile the Forms & Reports in Linux Apps Server which are created in WindowsXP client?
What are the Import Programs We need to run after creating Interface table for all modules
is UOM maintained at master level or organization level or both?
How you will Diaplay the Company LOGO In report.Can anyone knows please give solution
Is it is necessary to create P_CONC_REQUEST_ID parameter in the development of oracle apps reports
In a table their 20 records.I had update 6 records???How can see and retrieve particular 6 records.i.e.,Latest updated.
10 Answers HCL, TCS,
how to avoid duplicate data while uploading data from flatfile to staging table? some validations