Re: concatenation with a null column (using ||) nulls the result?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: concatenation with a null column (using ||) nulls the result?
Дата
Msg-id 921.1144705646@sss.pgh.pa.us
обсуждение исходный текст
Ответ на concatenation with a null column (using ||) nulls the result?  (Neil Harkins <nharkins@well.com>)
Список pgsql-sql
Neil Harkins <nharkins@well.com> writes:
> Is this standard SQL behavior? 

Yes.  SQL92 6.13 <string value expression>, general rule 2:
        2) If <concatenation> is specified, then let S1 and S2 be the re-           sult of the <character value
expression>and <character factor>,           respectively.
 
           a) If either S1 or S2 is the null value, then the result of the             <concatenation> is the null
value.
    ...
        regards, tom lane


В списке pgsql-sql по дате отправления:

Предыдущее
От: Neil Harkins
Дата:
Сообщение: concatenation with a null column (using ||) nulls the result?
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: concatenation with a null column (using ||) nulls the result?