Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> How to query an empty field?

How to query an empty field?

From: Tom Miskiewicz <miskiewicz2_at_yahoo.com>
Date: Sat, 15 Nov 2003 12:13:43 +0100
Message-ID: <bp51qf$erq$1@news.gatel.net>


Hi!

I wrote a query that uses a empty field in the where clause, but it doesn't deliver the expected result.

SELECT count(1) FROM mytable WHERE testfield1 = 2 and testfield2 = NULL;

testfield2 is a NUMBER(15);

Thanks
Tom Received on Sat Nov 15 2003 - 05:13:43 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US