Re: Form a field from two fields in a select - Mailing list pgsql-general

From Alexander Dederer
Subject Re: Form a field from two fields in a select
Date
Msg-id 9dtohj$2a63$2@news.tht.net
Whole thread Raw
In response to Form a field from two fields in a select  (manuel@des01.sanyres.es)
List pgsql-general
manuel@des01.sanyres.es wrote:

> Hi.
> How can i construct a field from two table fields in
> a select clausule.
> Something like this:
>
> select (month + " " + year) as date from xxx;
>
> from two fields month and year with they obvious values,
> to obtain a string link this:
>
>   102001
>
> and not a number as 2011.

SELECT month || year as date FROM xxx;


pgsql-general by date:

Previous
From: "Trygve Falch"
Date:
Subject: Re: SELECT from a table in another database
Next
From: bscinc2000@yahoo.comNOSPAM (Al Frick)
Date:
Subject: Re: Which Front End for Postgresql