Timestamp issue inserting into Oracle table from flat file
Posted: Fri Feb 11, 2011 1:18 am
Hi
I am trying to load date(along with time)from seqfile to Oracle table.
Source(Seq file) -Timestamp
Target (Oracle table) - Timestamp
I also want the time to be populated in target.
Source
2008-10-14 19:39:09.000
Expected Target
2008-10-14 19:39:09.000
Note :
Oconv(Iconv(Substrings(Extraction_Data.MODIFYDATE,1,10),'D-YMD'),'D-YMD') : Oconv(Iconv(Substrings(Extraction_Data.MODIFYDATE,11,19),'MTS'),'MTS')
works perfectly and I am able to load 2008-10-14 19:39:09 in target
Can anyone let me know how would we populate tthe expected date(along with timestamp) in target.
Thanks
Kiran
I am trying to load date(along with time)from seqfile to Oracle table.
Source(Seq file) -Timestamp
Target (Oracle table) - Timestamp
I also want the time to be populated in target.
Source
2008-10-14 19:39:09.000
Expected Target
2008-10-14 19:39:09.000
Note :
Oconv(Iconv(Substrings(Extraction_Data.MODIFYDATE,1,10),'D-YMD'),'D-YMD') : Oconv(Iconv(Substrings(Extraction_Data.MODIFYDATE,11,19),'MTS'),'MTS')
works perfectly and I am able to load 2008-10-14 19:39:09 in target
Can anyone let me know how would we populate tthe expected date(along with timestamp) in target.
Thanks
Kiran