Please let me know what is wrong with the following control file
load data
infile *
badfile 'c:\test\test.bad'
discardfile 'c:\test\test.bad'
append into table test1
fields terminated by ',' optionally enclosed by '"'
(INQ_NO integer,
FNAME,
LNAME,
HOME_TEL "replace(:home_tel,'-')",
WORK_TEL "replace(:work_tel,'-')",
EMAIL,
INQ_DATE date "yyyy-mm-dd",
FIRST_FOLL date "yyyy-mm-dd",
SEC_FOLL date "yyyy-mm-dd",
NO_FOLL,
INQ_TYPE,
ATTENDED_BY,
REMARKS,
INQ_STATUS,
MEDIA_ID
)
begindata
2501,"Abcd","Efg","1112223333","","",2001-03-30,2001-04-03,2001-04-07,3,"Personal Visit","Aaaa","Good Came in today interested in e-business pre-emp will call us.askinf for Unix & oracle Not sure when & what course he will start told him C++ & java - 3 april","Employment News",1
LOOKS LIKE it's your 'remarks' field.
you need to specify how many characters that field is going to be.
edit your loader file to the length of that column like below:
Bookmarks