SQL Loader - Set a field to a CONSTANT and the data is date
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'
)