-2

My CSV data:

 10,ABC,10000,101,DEPARTMENT
 11,XYZ,,,DEPT2

I wanted to insert it into the table with 3 columns:

 EMPID,EMPNAME,DEPARTMENT
dur
  • 15,689
  • 25
  • 79
  • 125

1 Answers1

0

In the control file, name the fields in the data that you don't want with a name that does not match a column in the table and call them FILLER. FILLER basically causes sqlldr to ignore that field. You should have identified which fields in the csv mapped to which columns but I will assume fields 1, 2 and 5 map to id, name and dept:

...
(
empid,
empname,
x1 FILLER,
x2 FILLER,
department
)
Gary_W
  • 9,933
  • 1
  • 22
  • 40