Re: Altering a table - positioning new columns - Mailing list pgsql-general

From Christoph Dalitz
Subject Re: Altering a table - positioning new columns
Date
Msg-id 20030120164622.5f692f06.christoph.dalitz@hs-niederrhein.de
Whole thread Raw
In response to Altering a table - positioning new columns  ("Chris Boget" <chris@wild.net>)
Responses Re: Altering a table - positioning new columns
List pgsql-general
> Date: Mon, 20 Jan 2003 07:24:57 -0600
> From: "Chris Boget" <chris@wild.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


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Fw: configure error with krb5
Next
From: "Chris Boget"
Date:
Subject: Re: Altering a table - positioning new columns