slicendice
Programmer
Hi
Does anyone know if it's possible to check for a negative number using the WHEN clause in SQL*Loader? The column being checked is defined in the database table as NUMBER(8).
I can use the following OK:
The above works fine, but if I change it to:
...it just seems to ignore it and load the data anyway, even if col1 is -1.
I've also tried using the Hex option with:
...but this just causes the error:
If anyone has any ideas, I'd be most grateful
Thanks
Does anyone know if it's possible to check for a negative number using the WHEN clause in SQL*Loader? The column being checked is defined in the database table as NUMBER(8).
I can use the following OK:
Code:
WHEN (col1 <> '1')
The above works fine, but if I change it to:
Code:
WHEN (col1 <> '-1')
I've also tried using the Hex option with:
Code:
WHEN (col1 <> X'-1')
Code:
SQL*Loader-350: Syntax error at line 5.
Non-hex character encountered where hex char expected
WHEN (col1 <> X'-1')
If anyone has any ideas, I'd be most grateful
Thanks