I was tempted to fall back on my VBA background and give you a bit of code
to fix this nasty habit of your users (101201 = 10th Dec 2001 ! how the heck
are they allowed to do that ???)
Then I realized you're using sqlldr to do the loading....so now you don't have
to mess around with Excel.
So you can use functions in the control file to convert this data column then...
eg.

LOAD DATA
INFILE *
INTO TABLE DEPT
FIELDS TERMINATED BY ','
(DEPTNO,
  DNAME,
  MESSY_DATE "to_date(:messy_date,'ddmmyy')"
)
BEGINDATA
10,Sales,101201
20,Accounting,111201
30,Consulting,121201
40,Finance,131201

OR

LOAD DATA
INFILE *
INTO TABLE DEPT
FIELDS TERMINATED BY ','
(DEPTNO,
  DNAME,
  MESSY_DATE date 'ddmmyy'
)
BEGINDATA
10,Sales,101201
20,Accounting,111201
30,Consulting,121201
40,Finance,131201



HTH
Robert Chin

----- Original Message -----

> Hi lists,
>
> I need to load the excel sheet data to oracle tables. A date column is
> improperly entered by users.
>
> In the excel sheet the date column was filled up without using hyphens
> or slashes
> the data is like this
>
> todays date: 10th Dec 2001
> (it is supposed to be 10/12/2001 or 10-Dec-2001 etc...)
>
> But it was entered in the cells as 101201
> When I formatted the data using the excel option cells -> format
>
> The data it is displaying in a strage format: 1/27/2177
>
> All the date values are displayed improperly.
>
> Does anybody come across such a situation. How to format the date cells
> in excelsheet.
> (should I change any options for the sheet)
>
>
> Thnx in advance,
>
> Srinivas

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Robert Chin
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to