Re: changing field length - Mailing list pgsql-admin

From Bruno Wolff III
Subject Re: changing field length
Date
Msg-id 20030820151831.GA13575@wolff.to
Whole thread Raw
In response to Re: changing field length  (Jodi Kanter <jkanter@virginia.edu>)
List pgsql-admin
On Wed, Aug 20, 2003 at 11:16:18 -0400,
  Jodi Kanter <jkanter@virginia.edu> wrote:
> Ok. so for now I want to return to where I started. so I renamed the
> table and regenerated my original table with the fields in the order
> that I like. I cannot just do a
> insert into table select * from other_table;
> because the fields are in a different order.
> Can I do this by listing the fields in my insert in the order in which I
> want them placed?

Yes. Instead of using '*' list the columns from the table that currently
has the data in the order that they appear in the table that is currently
empty.

pgsql-admin by date:

Previous
From: Jodi Kanter
Date:
Subject: Re: changing field length
Next
From: "Mendola Gaetano"
Date:
Subject: Re: Need Help on query tuning