Re: Alter Table

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Alter Table
Date: 2007-03-15 13:46:41
Message-ID: 20070315134641.GB30222@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

am Thu, dem 15.03.2007, um 14:35:41 +0100 mailte Shavonne Marietta Wijesinghe folgendes:
> 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 you can (and should) define the column-order in the select-statement.

Other solutions:
- define a VIEW
- recreate the table

Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net

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 Rodrigo De León 2007-03-15 14:05:45 Re: Joins on many-to-many relations.
Previous Message Shavonne Marietta Wijesinghe 2007-03-15 13:35:41 Alter Table