Re: Any limitation in size for return result from SELECT?

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Natasa Bulatovic <n(dot)bulatovic(at)zim(dot)mpg(dot)de>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Any limitation in size for return result from SELECT?
Date: 2003-03-02 03:44:36
Message-ID: 20030302034436.GA17897@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Tue, Feb 25, 2003 at 15:25:17 +0100,
Natasa Bulatovic <n(dot)bulatovic(at)zim(dot)mpg(dot)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.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Metnetsky 2003-03-02 04:20:29 HardCORE QUERY HELP!!!
Previous Message Joe Conway 2003-03-02 03:41:51 Re: Any limitation in size for return result from SELECT?