pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedRe: convert NULL into a value
3+ messages / 3 participants
[nested] [flat]
* Re: convert NULL into a value
@ 2002-12-12 04:03 Bruce Momjian <pgman@candle.pha.pa.us>
parent: Jonathan Man <jman@equityunderwriters.com.hk>
1 sibling, 0 replies; 3+ messages in thread
From: Bruce Momjian @ 2002-12-12 04:03 UTC (permalink / raw)
To: Jonathan Man <jman@equityunderwriters.com.hk>; +Cc: pgsql-sql
No, the SQL standard command is COALESCE.
---------------------------------------------------------------------------
Jonathan Man wrote:
> Hi,
>
> There is a function on the Oracle. That is NVL(field, 0) to convert null into a value (e.g. ZERO).
>
> Can I use this function on the PostgreSQL??
>
>
> Thank you for your help!!
>
> Regards,
>
> JONATHAN MAN
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: convert NULL into a value
@ 2002-12-12 04:03 Ludwig Lim <lud_nowhere_man@yahoo.com>
parent: Jonathan Man <jman@equityunderwriters.com.hk>
1 sibling, 0 replies; 3+ messages in thread
From: Ludwig Lim @ 2002-12-12 04:03 UTC (permalink / raw)
To: Jonathan Man <jman@equityunderwriters.com.hk>; +Cc: pgsql-sql
--- Jonathan Man <jman@equityunderwriters.com.hk>
wrote:
> Hi,
>
> There is a function on the Oracle. That is
> NVL(field, 0) to convert null into a value (e.g.
> ZERO).
>
> Can I use this function on the PostgreSQL??
>
-- The equivalent function is PostgreSQL is
SELECT COALESCE(field,0)
regards,
ludwig.
__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
^ permalink raw reply [nested|flat] 3+ messages in thread
* convert NULL into a value
@ 2002-12-12 04:08 Jonathan Man <jman@equityunderwriters.com.hk>
0 siblings, 2 replies; 3+ messages in thread
From: Jonathan Man @ 2002-12-12 04:08 UTC (permalink / raw)
To: pgsql-sql
Hi,
There is a function on the Oracle. That is NVL(field, 0) to convert null into a value (e.g. ZERO).
Can I use this function on the PostgreSQL??
Thank you for your help!!
Regards,
JONATHAN MAN
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2002-12-12 04:08 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-12-12 04:08 convert NULL into a value Jonathan Man <jman@equityunderwriters.com.hk>
2002-12-12 04:03 ` Bruce Momjian <pgman@candle.pha.pa.us>
2002-12-12 04:03 ` Ludwig Lim <lud_nowhere_man@yahoo.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox