Page 1 of 1

date format

Posted: Thu Oct 16, 2008 12:53 am
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

Posted: Thu Oct 16, 2008 3:20 am
by Scope
try to insert without any conversion

Posted: Thu Oct 16, 2008 7:19 am
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').

Posted: Thu Oct 16, 2008 8:24 am
by prams
Scope wrote:try to insert without any conversion
Thanks for reply