Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Unable to Load Data into Database

Re: Unable to Load Data into Database

From: Winxxniw <winxxniw_at_aol.com>
Date: 1998/01/24
Message-ID: <19980124051001.AAA27117@ladder01.news.aol.com>#1/1

I have a similar situation in Sybase System 10.

SS10 bcp output for datetime format comes out like

Jan 22 1998 10:00:00:000AM

Assuming you're using sqlldr, in the control file for date files try the following:

field name in table to be loaded is "DATEFIELD"

DATEFIELD "TO_DATE(substr(:DATEFIELD,1,20)||substr(:DATEFIELD,24),'MON DD YYYY HH:MI:SSAM')" This effectively removes the milliseconds from the bcp out.

Hope this helps, and if you come up with an elegant solution for embedded new lines in SQL*Load, please let me know! (winxxniw_at_aol.com) Received on Sat Jan 24 1998 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US