Re: Select statement

From: missive(at)frontiernet(dot)net (Lee Harr)
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Select statement
Date: 2001-05-21 22:28:03
Message-ID: 9ec4pi$1lhe$1@node21.cwnet.roc.gblx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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;

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Paul Tomblin 2001-05-21 23:46:01 Re: Why can't I do this (setup question)
Previous Message Ian Harding 2001-05-21 22:24:52 Adding a date and an interval...