Re: how to conditionally append

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: how to conditionally append
Date: 2007-04-25 16:32:40
Message-ID: 20070425163240.GA17702@KanotixBox
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

kvnsmnsn(at)cs(dot)byu(dot)edu <kvnsmnsn(at)cs(dot)byu(dot)edu> schrieb:
> The problem with this is that sometimes <ext> is <NULL>, and apparent-
> ly a <NULL> value concatenated with any kind of character string al-
> ways results in a <NULL> value. At least that's the results I've been

... coalesce(ext,'')...

Read the doc about coalesce().

Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknow)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Alan Hodgson 2007-04-25 16:54:07 Re: moving data from windows to linux
Previous Message kvnsmnsn 2007-04-25 16:23:12 how to conditionally append