Home » RDBMS Server » Server Utilities » insert a hardcoded date in control file.
insert a hardcoded date in control file. [message #71951] Mon, 10 February 2003 16:32 Go to next message
Sabrina
Messages: 76
Registered: February 2002
Member
My control file looks likes,

load data infile 'EDS1997.TXT'
into table PROC_CODES_HIST append
(
DUMMYDATE DATE 'MM/DD/YYYY' '01/01/2001'
)

i get the error
SQL*lOADER-466: Column "01/01/1997" does not exist in table PROC_CODES_HIST

any suggestions??

thanx
Re: insert a hardcoded date in control file. [message #71952 is a reply to message #71951] Mon, 10 February 2003 21:06 Go to previous messageGo to next message
sujit
Messages: 94
Registered: April 2002
Member
Try this:

DUMMYDATE CONSTANT "01-JAN-97"

This should workout. But depends on your default date
format as well. Hope you do not need to enter the time
part as well. In such a case we will have another
workaround to it.

DUMMYDATE "TO_DATE ('01-JAN-97 12:11', 'DD-MON-YY HH:MI')"

This will for sure work. ;-)

Sujit
Thank you Sujit, it worked like a charm! [message #71967 is a reply to message #71951] Tue, 11 February 2003 10:06 Go to previous message
Sabrina
Messages: 76
Registered: February 2002
Member
Thank you Sujit, it worked like a charm!
Previous Topic: Re: FREE OCP PAPERS
Next Topic: UTF8 question
Goto Forum:
  


Current Time: Wed May 15 21:50:07 CDT 2024