I have a SQL Loader control file as follows
I get error Expecting valid column specification, "," or "", found keyword when.
CODE POSITION(01:05) CHAR WHEN(CODE NOT LIKE '% %')
However,
works.
What i need the SQL Loader to do is to only import a record IFF code contains no spaces. Possible or not?
Neither WHEN nor NULLIF seems to like the tag
!
Code:
--Load XE Initialisation data from datascope into instrument table
--Test NULLIF Clause in SQL Loader
Options (userid=test)
Load Data
infile 'test.dat'
REPLACE
-- load data wheather the table contain data or empty
Into table Test
(
CODE POSITION(01:05) CHAR WHEN(CODE NOT LIKE '% %')
)
I get error Expecting valid column specification, "," or "", found keyword when.
CODE POSITION(01:05) CHAR WHEN(CODE NOT LIKE '% %')
However,
Code:
CODE POSITION(01:05) CHAR NULLIF (CODE=' ')
What i need the SQL Loader to do is to only import a record IFF code contains no spaces. Possible or not?
Neither WHEN nor NULLIF seems to like the tag
Code:
LIKE '% %'