Hi,
I'm trying to load a file with the following control file, but get a syntax error as follows. No one here, including the DBA can work out why. He's off today, so I'm posting here to see if anyone can help meantime.
Control File:
Load data
truncate
into table t_mailing_preference
fields terminated by "," optionally enclosed by '"'
WHEN ACTION="I" or ACTION="R" or ACTION="X"
(
ACTION "UPPERACTION)",
REQUEST_DATE "TO_DATEREQUEST_DATE,'DDMMYYYY')",
INTEREST_AREAS "CONCAT(UPPERINTEREST_AREAS),UPPER(04))",
NEW_INTEREST_AREAS FILLER,
PREFIX "UPPERPREFIX)",
INITIALS "UPPERINITIALS)",
SURNAME "UPPERSURNAME)",
SUFFIX "UPPERSUFFIX)",
ADDRESS_LINE_1 "UPPERADDRESS_LINE_1)",
ADDRESS_LINE_2 "UPPERADDRESS_LINE_2)",
ADDRESS_LINE_3 "UPPERADDRESS_LINE_3)",
TOWN "UPPERTOWN)",
COUNTY "UPPERCOUNTY)",
POSTCODE "UPPERPOSTCODE)",
DPS FILLER
)
Error:
SQL*Loader: Release 8.1.7.2.1 - Production on Tue Nov 13 17:28:56 2001
(c) Copyright 2000 Oracle Corporation. All rights reserved.
SQL*Loader-350: Syntax error at line 10.
Expecting "(", found "or".
into table t_mailing_preference WHEN ACTION="I" or ACTION="R" or ACT
^
Regards,
Graham
I'm trying to load a file with the following control file, but get a syntax error as follows. No one here, including the DBA can work out why. He's off today, so I'm posting here to see if anyone can help meantime.
Control File:
Load data
truncate
into table t_mailing_preference
fields terminated by "," optionally enclosed by '"'
WHEN ACTION="I" or ACTION="R" or ACTION="X"
(
ACTION "UPPERACTION)",
REQUEST_DATE "TO_DATEREQUEST_DATE,'DDMMYYYY')",
INTEREST_AREAS "CONCAT(UPPERINTEREST_AREAS),UPPER(04))",
NEW_INTEREST_AREAS FILLER,
PREFIX "UPPERPREFIX)",
INITIALS "UPPERINITIALS)",
SURNAME "UPPERSURNAME)",
SUFFIX "UPPERSUFFIX)",
ADDRESS_LINE_1 "UPPERADDRESS_LINE_1)",
ADDRESS_LINE_2 "UPPERADDRESS_LINE_2)",
ADDRESS_LINE_3 "UPPERADDRESS_LINE_3)",
TOWN "UPPERTOWN)",
COUNTY "UPPERCOUNTY)",
POSTCODE "UPPERPOSTCODE)",
DPS FILLER
)
Error:
SQL*Loader: Release 8.1.7.2.1 - Production on Tue Nov 13 17:28:56 2001
(c) Copyright 2000 Oracle Corporation. All rights reserved.
SQL*Loader-350: Syntax error at line 10.
Expecting "(", found "or".
into table t_mailing_preference WHEN ACTION="I" or ACTION="R" or ACT
^
Regards,
Graham