Re: Insert values from one existing table into a new table.

From: Jeff Eckermann <jeff_eckermann(at)yahoo(dot)com>
To: Jason <jzhu(at)dental(dot)temple(dot)edu>, pgsql-sql(at)postgresql(dot)org
Subject: Re: Insert values from one existing table into a new table.
Date: 2001-11-15 15:48:43
Message-ID: 20011115154843.61029.qmail@web20807.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Lose the quotes, add a semicolon, and you already have
the correct syntax :-)
--- Jason <jzhu(at)dental(dot)temple(dot)edu> wrote:
> I want to insert the existing values of one table
> into a new table. It
> needs the combination of these to sql commands:
>
> " insert into new_table values (
> values_of_AtrributeA,
> values_of_AttributesB) "
> " select AttributeA, AttributeB from some_table "
>
> Thanks for your suggestions! -- Jason
>
>
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2001-11-15 16:06:31 Re: Unable to use '-' in column names in PLPGSQL
Previous Message Jeff Eckermann 2001-11-15 15:47:17 Re: Help with INSERT into 2 tables