Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-novice by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group