Re: Concat two fields into one at runtime

Поиск
Список
Период
Сортировка
От Bricklen Anderson
Тема Re: Concat two fields into one at runtime
Дата
Msg-id 44884822.8020109@presinet.com
обсуждение исходный текст
Ответ на Concat two fields into one at runtime  (George Handin <postgresql@dafunks.com>)
Список pgsql-sql
George Handin wrote:
> Is there a way using built-in PostgreSQL functions to combine two data 
> fields into a single field at runtime when querying data?
> 
> For example, the query now returns:
> 
> id    first    last
> ---   -------  ----------
> 1     Goerge   Handin
> 2     Joe      Rachin
> 
> I'd like it to return:
> 
> id    name
> ---   -------------------
> 1     George Handin
> 2     Joe Rachin

select id,first||' '||last from your_table


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

Предыдущее
От: "Aaron Bono"
Дата:
Сообщение: Re: Concat two fields into one at runtime
Следующее
От: Oisin Glynn
Дата:
Сообщение: Re: Concat two fields into one at runtime