From: Bruno Wolff III <bruno@wolff.to>
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 21:44:36 -0600
Message-ID: <20030302034436.GA17897@wolff.to> (raw)
In-Reply-To: <002e01c2dcd9$b887b2b0$e302b782@ipp.mpg.de>
References: <002e01c2dcd9$b887b2b0$e302b782@ipp.mpg.de>
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 statement does 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.
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: bruno@wolff.to, n.bulatovic@zim.mpg.de
Subject: Re: Any limitation in size for return result from SELECT?
In-Reply-To: <20030302034436.GA17897@wolff.to>
* 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