Re: amateur nite out

From: The Hermit Hacker <scrappy(at)hub(dot)org>
To: "D(dot) Duccini" <duccini(at)backpack(dot)com>
Cc: Pgsql-novice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: amateur nite out
Date: 2001-01-03 00:04:41
Message-ID: Pine.BSF.4.31.0101022004230.672-100000@thelab.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Tue, 2 Jan 2001, D. Duccini wrote:

>
> i think its time for afternoon coffee
>
> how do you select multiple columns but return them as a single column?
>
> ie, select lastname+', '+firstname as fullname from authors;
>
> of course it chokes on the + op

SELECT lastname || ', ' || firstname AS fullname FROM authors;

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Chris 2001-01-03 00:06:45 Re: ColdFusion sez this is valid SQL
Previous Message Brett W. McCoy 2001-01-02 23:31:21 Re: ColdFusion sez this is valid SQL