Re: CREATE TABLE AS COMMAND - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: CREATE TABLE AS COMMAND
Date
Msg-id 20031205183925.GA17602@wolff.to
Whole thread Raw
In response to CREATE TABLE AS COMMAND  ("Bob Powell" <Bob@hotchkiss.org>)
Responses Re: CREATE TABLE AS COMMAND
List pgsql-general
On Fri, Dec 05, 2003 at 13:20:27 -0500,
  Bob Powell <Bob@hotchkiss.org> wrote:
> To whom it may concern,
>
> The following select works fine until I use the CREATE TEMP TABLE AS command because of the matching participant_id's
ineach table.  
>
> SELECT * FROM addresses LEFT OUTER JOIN contacts ON
> contacts.participant_id = addresses.participant_id;
>
> Running the select obviously works fine, it's just when I try to create a table when I runn into problems.  Do I have
tolist all of the fields except the one I don't want, or is there another way?   Thanks in advance.   

You probably want to use an explicit column list instead of * so that
things get associated correctly.

pgsql-general by date:

Previous
From: "Bob Powell"
Date:
Subject: CREATE TABLE AS COMMAND
Next
From: Greg Stark
Date:
Subject: Re: CREATE TABLE AS COMMAND