Re: Altering a table - positioning new columns

From: Christoph Dalitz <christoph(dot)dalitz(at)hs-niederrhein(dot)de>
To: chris(at)wild(dot)net
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Altering a table - positioning new columns
Date: 2003-01-20 15:46:22
Message-ID: 20030120164622.5f692f06.christoph.dalitz@hs-niederrhein.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Date: Mon, 20 Jan 2003 07:24:57 -0600
> From: "Chris Boget" <chris(at)wild(dot)net>
>
> In MySQL, when adding a new column to a table, you could
> position it relative to another column already in the DB. IOW,
> you could do something like this:
>
> ALTER TABLE blah ADD COLUMN newcol AFTER anothercol.
>
> Is something like this possible in PG? Or are _all_ new columns
> added to the end of the column list?
>
AFAIK there is no concept like "column order of a relation" in the
relational model; thus the above MySQL option should not be supported by
a relational database. What does the SQL standard say about this?

Christoph Dalitz

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Chris Boget 2003-01-20 15:51:32 Re: Altering a table - positioning new columns
Previous Message Tom Lane 2003-01-20 15:40:45 Re: Fw: configure error with krb5