From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Natasa Bulatovic <n.bulatovic@zim.mpg.de>
Cc: pgsql-sql@postgresql.org
Subject: Re: Any limitation in size for return result from SELECT?
Date: Sat, 1 Mar 2003 19:03:03 -0800 (PST)
Message-ID: <20030301190150.E21955-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <002e01c2dcd9$b887b2b0$e302b782@ipp.mpg.de>
On Tue, 25 Feb 2003, Natasa Bulatovic wrote:
> Select statement returns as a result concatenated all varchar, text
> and char columns of a table as one single column ...
>
> select col1||col2||col3||.....||col100 from table
>
> However, when the number of concatenated columns is bigger than 22 no
> result is given back (tested in psql, as well as from pgplsql)....
>
> Most of these columns for the test data are NULL...Datatypes of
> columns are mixed text, varchar, char...Select statement does not
> return any error...Just returns a row with a null result.... Any quick
> suggestions would be very useful....
Anything concatenated with a NULL is NULL. You'll probably want to use
COALESCE(col1,'')||... for each of the columns that can be null.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: sszabo@megazone23.bigpanda.com, n.bulatovic@zim.mpg.de
Subject: Re: Any limitation in size for return result from SELECT?
In-Reply-To: <20030301190150.E21955-100000@megazone23.bigpanda.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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