Re: Query combining columns

Поиск
Список
Период
Сортировка
От Nabil Sayegh
Тема Re: Query combining columns
Дата
Msg-id 1057663158.8371.2.camel@billy
обсуждение исходный текст
Ответ на Query combining columns  (phil campaigne <pcampaigne@charter.net>)
Список pgsql-novice
Am Mon, 2003-07-07 um 21.04 schrieb phil campaigne:
>     Hi All,
> Can I combine 2 columns as a single column in a select statement?
> i.e.  select value_1, value_2, (value_2 + value_2) from table;

Concatenating 2 Strings is done with ||
SELECT 'foo' || ' bar';
'foo bar'

The result is simply 1 string, ie. you can handle it like any other
column.

HTH
--
 e-Trolley Sayegh & John, Nabil Sayegh
 Tel.: 0700 etrolley /// 0700 38765539
 Fax.: +49 69 8299381-8
 PGP : http://www.e-trolley.de


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

Предыдущее
От: Wim
Дата:
Сообщение: Re: UNSUBSCRIBE
Следующее
От:
Дата:
Сообщение: Re: Differentiate between system commands and user commands