Re: [SQL] Concatenation in selects

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [SQL] Concatenation in selects
Дата
Msg-id 199809040104.VAA13352@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [SQL] Concatenation in selects  (Leslie Mikesell <les@Mcs.Net>)
Список pgsql-sql
> You should also be able to use the SQL concatenation operator '||'.  It
> doesn't seem to be able to understand more than 2 things at once so
> you have to use parens for grouping.  I don't know if that is an SQL
> requirement or a postgresql limitation.
>
>   select (first_name || ' ') || last_name as full_name from users;

Yes, that is in the 6.4 bugs list, and if it is not fixed, will be added
to the TODO list.

--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

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

Предыдущее
От: "Fidelis Assis"
Дата:
Сообщение: Resp: RE: Resp: [SQL] Concatenation in selects
Следующее
От: Federico Passaro
Дата:
Сообщение: Re: [SQL] Forming Query