I have a file which i want to load using sql loader.the sample file is as follows.
1|Deepak|1|raj|Kumar|mcapatna|powerhouse
the control file is
LOAD DATA
INFILE *
TRUNCATE
INTO TABLE Student WHEN (1:1)= '1'
FIELDS TERMINATED BY '|'
TRAILING NULLCOLS
(
nickName1 position(6) NULLIF nickName1=BLANKS ,
nickName2 NULLIF nickName2=BLANKS ,
class CONSTANT '10',
Address CONSTANT 'NA'
)
The output what i want is nickName1=mcapatna nickName=powerhouse class=10 & Address=NA
.
I am getting the value for nickName1=pak
& for nickName2= 1
That means it is counting based on sequence of single characters..