From: | "Frank Morton" <fmorton(at)base2inc(dot)com> |
---|---|
To: | <pgsql-sql(at)postgresql(dot)org> |
Subject: | alter help needed |
Date: | 1998-11-29 05:43:49 |
Message-ID: | 005f01be1b5b$3d5ecef0$8355e5ce@tesla.base2inc.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
As an example, given a table with 2 columns, if I want to add
a new column "between" the already existing columns, is there
any way to use "alter table" to do this?
The only way I can figure out how to do this and preserve the
data is to dump the database and write a script to modify
the dump by modifying the table structure plus the insert
statements reflecting the change. This seems more painful
and I must be missing an easier way to do this.
I am trying to come up with an automated way to deal with
multiple revisions of a database structure.
Any help? Thanks.
_________________________________
Frank Morton (fmorton(at)mail(dot)base2inc(dot)com)
Voice: (317) 876-3355
FAX: (317) 876-3398
Home: (317) 574-0815
From | Date | Subject | |
---|---|---|---|
Next Message | Herouth Maoz | 1998-11-29 10:44:34 | Re: [SQL] alter help needed |
Previous Message | Andreas Kostyrka | 1998-11-27 19:51:56 | Large Objects, anyone? |