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 -> Null date

Null date

From: <wweng_at_ei.org>
Date: 12 May 1999 21:22:06 GMT
Message-ID: <7hcrdu$1h6$1@eipipeline.ei.org>


is a date variable comparable to null?

I mean if i have a table temp
with

tempid		number constraint pk_tempid primary key;
tempdate	date;

and I did

insert temp (tempid) values (1);

and then I do

select tempdate into p from temp where tempid = 1;

obviously, tempdate should be a null.

So, can I do

if tempdate = null then

        htp.p('it is null!');
end if;

or should I compare the tempdate to some other stuff so that I can tell it is empty?

Thanks in advance

wei Received on Wed May 12 1999 - 16:22:06 CDT

Original text of this message

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