Re: IS NULL

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Link <dlink(at)soundscan(dot)com>
Cc: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: IS NULL
Date: 2001-11-06 19:49:14
Message-ID: 17457.1005076154@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

David Link <dlink(at)soundscan(dot)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

In response to

  • IS NULL at 2001-11-06 18:52:05 from David Link

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2001-11-06 20:27:27 Re: Workaround or user defined type
Previous Message Juan Jose Natera Abreu 2001-11-06 19:38:57 Workaround or user defined type