Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: IN and NULL
: >
: >Having a bit of a wrestle trying to get this statement to work in
: >Oracle 8:
: >
: >SELECT *
: >FROM products
: >WHERE product IN ('Nuts and Bolts', NULL)
: >AND category IN ('Hardware', NULL)
: >
: >It just appears to ignore the NULL condition. Replacing NULL with
: >'' doesn't help either.
: >
select * from products
where
NVL(product,'This is not a product name')
IN ('Nuts and Bolt','This is not a product name');
Received on Thu Feb 10 2000 - 18:02:58 CST
![]() |
![]() |