Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SQL Loader - Set a field to a CONSTANT and the data is date

274598Jun 24 2002
Hi.

I have a question on SQL Loader.

I want to load a field(field name is TIME_IN).
In the Oracle table, this field type is DATE.

I my csv file, I do not put any value for this field.
I intend to use CONSTANT variable to this field.

In my control file, following is the command for above field.
Hoever, when I run the SQLLoader, it will return me error message which is INVALID MONTH.

I hope somebody can help and advise me on this matter.

Thanks.

---------------------------

INTO TABLE eqreceival_temp
FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"'
(
EQ_NO,
SIZE_TYPE,
CUSTOMER,
CONSTRUCTION,
QUALITY,
CONDITION,
DATE_IN DATE "DD/MM/YYYY",
TIME_IN CONSTANT '01/01/1999',
PARK_LOC CONSTANT 'CP',
STOCK CONSTANT 'S',
DISCHARGE_PORT CONSTANT 'MYPEN',
CTYPE CONSTANT 'P',
ROAD CONSTANT 'Y',
GATE CONSTANT 'Y',
SHIPMENT CONSTANT 'Y'
)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 23 2002
Added on Jun 24 2002
2 comments
1,546 views