Re: Any limitation in size for return result from SELECT? - Mailing list pgsql-sql

From Bruno Wolff III
Subject Re: Any limitation in size for return result from SELECT?
Date
Msg-id 20030302034436.GA17897@wolff.to
Whole thread Raw
In response to Any limitation in size for return result from SELECT?  ("Natasa Bulatovic" <n.bulatovic@zim.mpg.de>)
List pgsql-sql
On Tue, Feb 25, 2003 at 15:25:17 +0100, Natasa Bulatovic <n.bulatovic@zim.mpg.de> wrote:
> 
> select col1||col2||col3||.....||col100 from table
> 
> Most of these columns for the test data are NULL...Datatypes of columns are mixed text, varchar, char...Select
statementdoes not return any error...Just returns a row with a null result....
 

If you concatenate null with another string you get null, not the other string.
You need to use coalesce to convert nulls to empty strings.


pgsql-sql by date:

Previous
From: no.spam@address.com
Date:
Subject: Denormalizing during select
Next
From: Bruno Wolff III
Date:
Subject: Re: OUTER JOIN with filter