Re: IS NULL - Mailing list pgsql-novice

From Tom Lane
Subject Re: IS NULL
Date
Msg-id 17457.1005076154@sss.pgh.pa.us
Whole thread Raw
In response to IS NULL  (David Link <dlink@soundscan.com>)
List pgsql-novice
David Link <dlink@soundscan.com> writes:
> This frag returns a bogus date when column value is null:
>   to_char(to_date (theatre_reldate, 'DDMMYYYY'), 'DD Mon YYYY')

Uh, what's bogus about it?  I get a NULL result.

> So I'm looking for something of this sort:
>  (case when not is null (t.theatre_reldate) then

It's spelled "something IS NULL" or "something IS NOT NULL".

            regards, tom lane

pgsql-novice by date:

Previous
From: Juan Jose Natera Abreu
Date:
Subject: Workaround or user defined type
Next
From: Tom Lane
Date:
Subject: Re: Workaround or user defined type