| From: | Ludwig Lim <lud_nowhere_man(at)yahoo(dot)com> |
|---|---|
| To: | "Hctor" Iturre <hhiturre(at)yahoo(dot)com(dot)ar> |
| Cc: | PostgreSQL Mailing List <pgsql-sql(at)postgresql(dot)org> |
| Subject: | Re: ISNULL FUNCTION |
| Date: | 2002-12-09 14:42:20 |
| Message-ID: | 20021209144220.16180.qmail@web80313.mail.yahoo.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
--- Hctor Iturre <hhiturre(at)yahoo(dot)com(dot)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 end
from calfiscal
where impuesto = 1
regards,
ludwig
__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Charles Hauser | 2002-12-09 16:11:21 | Adding foreign key constraint post table creation |
| Previous Message | Héctor Iturre | 2002-12-09 14:30:49 | ISNULL FUNCTION |