Re: Form a field from two fields in a select

From: Alexander Dederer <dederer(at)spb(dot)cityline(dot)ru>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Form a field from two fields in a select
Date: 2001-05-16 11:35:06
Message-ID: 9dtohj$2a63$2@news.tht.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

manuel(at)des01(dot)sanyres(dot)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;

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alexander Dederer 2001-05-16 11:37:41 Parallel Serever use PostgreSQL
Previous Message Alexander Dederer 2001-05-16 11:32:03 Re: timestamp changed on 7.1.1 ?