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

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Any limitation in size for return result from SELECT?
Дата
Msg-id 20030302034436.GA17897@wolff.to
обсуждение исходный текст
Ответ на Any limitation in size for return result from SELECT?  ("Natasa Bulatovic" <n.bulatovic@zim.mpg.de>)
Список 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 по дате отправления:

Предыдущее
От: no.spam@address.com
Дата:
Сообщение: Denormalizing during select
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: OUTER JOIN with filter