Re: Re: Select statement

From: "Thalis A(dot) Kalfigopoulos" <thalis(at)cs(dot)pitt(dot)edu>
To: missive(at)hotmail(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Re: Select statement
Date: 2001-05-22 22:21:22
Message-ID: Pine.LNX.4.21.0105221818280.317-100000@aluminum.cs.pitt.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 21 May 2001, Lee Harr wrote:

> On Mon, 21 May 2001 19:26:04 +0000 (UTC), dave go <godave621(at)yahoo(dot)com> wrote:
> > Hi,
> >
> > I am trying create a new table A from table B. On B
> > (b1, b2, b3, b4 ) I would like create a table A (a1,
> > a2, a3) where a2 is b2 and b3.
> >
> > example:
> > A)
> >
> > Id, lastname, Firstname, MInit
> > ------------------------------
> >
> > B)
> >
> > Id, Name, MInit
> > ---------------
> >
>
>
> SELECT Id, Firstname||' '||lastname as Name, MInit into B from A;

That's an interesting syntax which is not "visible" when doing '\h select' in the psql monitor but exists in the online manual. Someone could add it?...

regards,
thalis

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Neil Conway 2001-05-22 22:26:23 Re: Cant get Perl Module loaded
Previous Message Albertson, Chris 2001-05-22 21:34:10 RE: 2GB file size limit