From: Bruno Wolff III <bruno@wolff.to>
To: Jodi Kanter <jkanter@virginia.edu>
Cc: Gaetano Mendola <mendola@bigfoot.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: changing field length
Date: Wed, 20 Aug 2003 10:18:31 -0500
Message-ID: <20030820151831.GA13575@wolff.to> (raw)
In-Reply-To: <3F4390C2.6050106@virginia.edu>
References: <3F426DB0.1040607@virginia.edu>
<000d01c36685$78b2c090$10d4a8c0@mm.eutelsat.org>
<3F4382C6.3030101@virginia.edu>
<20030820142639.GA10047@wolff.to>
<3F438A64.8030206@virginia.edu>
<20030820145847.GB11204@wolff.to>
<3F4390C2.6050106@virginia.edu>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: bruno@wolff.to, jkanter@virginia.edu, mendola@bigfoot.com
Subject: Re: changing field length
In-Reply-To: <20030820151831.GA13575@wolff.to>
References: <3F426DB0.1040607@virginia.edu> <000d01c36685$78b2c090$10d4a8c0@mm.eutelsat.org> <3F4382C6.3030101@virginia.edu> <20030820142639.GA10047@wolff.to> <3F438A64.8030206@virginia.edu> <20030820145847.GB11204@wolff.to> <3F4390C2.6050106@virginia.edu> <20030820151831.GA13575@wolff.to>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox