Re: how to conditionally append - Mailing list pgsql-novice

From Andreas Kretschmer
Subject Re: how to conditionally append
Date
Msg-id 20070425163240.GA17702@KanotixBox
Whole thread Raw
In response to how to conditionally append  (kvnsmnsn@cs.byu.edu)
List pgsql-novice
kvnsmnsn@cs.byu.edu <kvnsmnsn@cs.byu.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°

pgsql-novice by date:

Previous
From: "Daniel T. Staal"
Date:
Subject: Re: International Date formats
Next
From: Alan Hodgson
Date:
Subject: Re: moving data from windows to linux