date format

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
prams
Participant
Posts: 73
Joined: Mon Apr 02, 2007 11:26 pm

date format

Post by prams »

Hi All,

I have csv source file from that i am getting the date column in the format "dd-mon-yy" but, i need to load into oracle table in oracle table the data type is date.

i tried to use the insert query as to_date(string 'dd-mon-yy') but i am getting the aborted.

i tried to use the stringtodate function also now also it is aborting.

can any one help me in this regard

Thanks
Prams
Scope
Premium Member
Premium Member
Posts: 63
Joined: Wed Jun 06, 2007 6:38 am
Location: Chennai

Post by Scope »

try to insert without any conversion
Kumarez
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Aborted how? What error? Your TO_DATE syntax looks fine as long as there's a comma in there: to_date(string, 'dd-mon-yy').
-craig

"You can never have too many knives" -- Logan Nine Fingers
prams
Participant
Posts: 73
Joined: Mon Apr 02, 2007 11:26 pm

Post by prams »

Scope wrote:try to insert without any conversion
Thanks for reply
Post Reply