Re: NULL values - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: NULL values
Date
Msg-id Pine.LNX.4.30.0107102129030.677-100000@peter.localdomain
Whole thread Raw
In response to NULL values  ("Mark Muffett" <markm@muffett.net>)
List pgsql-general
Mark Muffett writes:

> Is there a Postgresql equivalent to the Oracle NVL( ) function, which
> allows a SELECT statement to fill in default values if a column is
> NULL?

COALESCE(x1, x2, x3, ...)

returns the first xn that is not null.

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


pgsql-general by date:

Previous
From: "Mikheev, Vadim"
Date:
Subject: RE: Re: Backups WAS: 2 gig file size limit
Next
From: Joseph Shraibman
Date:
Subject: Re: Re: Backups WAS: 2 gig file size limit