Re: AW: [HACKERS] isnull() or is it?t

From: "H(dot)Lefebvre" <hlefebvre(at)easynet(dot)fr>
To: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: AW: [HACKERS] isnull() or is it?t
Date: 1998-12-09 14:56:12
Message-ID: 366E8F8C.9BA27BA4@easynet.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Zeugswetter Andreas IZ5 wrote:
>
> > isnull() is on our TODO list.
>
> It should be called NVL() from "Null VaLue" like in Oracle and
> Informix.
> isnull() would suggest a boolean return value to me.
>

With SyBase, IsNull(X,Y) returns X if X is not null, and Y
if X is null.

Example:

SELECT reference, name, IsNull(price, 0.00)
FROM t_items

reference name price
------------ --------------- -------
W95 Windows95 190.00
WNT400 Windows NT 4.0 490.00
LX Linux 0.00

rather than:

SELECT reference, name, price,
FROM t_items

reference name price
------------ --------------- -------
W95 Windows95 190.00
WNT400 Windows NT 4.0 490.00
LX Linux NULL

--
H.Lefebvre

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1998-12-09 15:05:40 Re: [HACKERS] plTcl test failed
Previous Message Oleg Bartunov 1998-12-09 14:11:17 Re: [HACKERS] problem compiling with egcs 1.1.1