Re: Alter Table

From: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>
To: Shavonne Marietta Wijesinghe <shavonne(dot)marietta(at)studioform(dot)it>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Alter Table
Date: 2007-03-15 16:13:18
Message-ID: 1173975198.12681.40.camel@state.g2switchworks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Thu, 2007-03-15 at 08:35, Shavonne Marietta Wijesinghe wrote:
> When i alter a table and add a new column it always adds it to the end
> of the table. Is there any way to tell it to add the new column at the
> 5th position or to add the new column after a surtain column.

No, but the good news is you can just recreate the table once it's
stabilized in form with something like:

create table new_table as select field1, field4, field2, field3 from
old_table;

In response to

  • Alter Table at 2007-03-15 13:35:41 from Shavonne Marietta Wijesinghe

Browse pgsql-sql by date

  From Date Subject
Next Message T E Schmitz 2007-03-15 18:54:45 Re: join table with itself?
Previous Message William Leite Araújo 2007-03-15 15:57:06 Re: join table with itself?