Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to dymanically skip columns while loading

918103Mar 14 2012 — edited Mar 14 2012
datafile

cust grade age description
AAA,A,25,Vic
BBB,A,34,Man
CCC,A,23,Dir
DDD,A,25,SM
EEE,A,29,DBM

fields in table 1
cust, age, description

fields in table 2
cust, grade, age


control file to load data in table 1

options (skip=(1) direct=true)
load data
infile 'c:\data.csv'
replace
into table tab_abc
fields terminated by ','
TRAILING NULLCOLS
(
cust,
surame FILLER,
age,
description
)

not sure if FILLER is something i can use here.
Any help is really appreciated. Let me know if more information is needed.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 11 2012
Added on Mar 14 2012
3 comments
102 views