Re: ISNULL FUNCTION - Mailing list pgsql-sql

From Ludwig Lim
Subject Re: ISNULL FUNCTION
Date
Msg-id 20021209144220.16180.qmail@web80313.mail.yahoo.com
Whole thread Raw
In response to ISNULL FUNCTION  (Héctor Iturre <hhiturre@yahoo.com.ar>)
List pgsql-sql
--- H�ctor Iturre <hhiturre@yahoo.com.ar> wrote:
> HI,
>    HERE IS AN ALTERNATIVE TO USE THE SQL SERVER
> ISNULL() FUNCTION
> 
> 
> select case when FIELD_NAME isnull then 'EXPRESION' 
> else FIELD_NAME end
> from calfiscal
> where impuesto = 1

try using
 SELECT coalesce(field_name,'EXPRESSION') FROM calfiscal WHERE impuestor = 1

OR 
SELECT case when FIELD_NAME IS NULL then 'EXPRESION' else FIELD_NAME endfrom calfiscalwhere impuesto = 1


regards,

ludwig


__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com


pgsql-sql by date:

Previous
From: Héctor Iturre
Date:
Subject: ISNULL FUNCTION
Next
From: Charles Hauser
Date:
Subject: Adding foreign key constraint post table creation