JD,
Oracle adds columns to the end of an existing structure to cause zero impact upon the existing rows of data.
If you wish to add a column prior to other, existing columns, then the best method is to create another, new table (we'll call it JD) that reflects the column order that you wish.
Once that table exists, then load the new table with data from the old table:
Code:
INSERT into JD
SELECT <column-list-to-match-new-table>
FROM <old-table>;
Then drop the old table and rename the new table to the old table name:
Code:
DROP TABLE <old-table-name>;
RENAME JD to <old-table-name>;
If there are PKs, FKs, or other constraints, then you will need to accommodate them in the new table, as well.
There are a couple of variations on this same theme, but this is how life is in the Oracle World.
Let us know how it goes for you.
![[santa] [santa] [santa]](/data/assets/smilies/santa.gif)
Mufasa
(aka Dave of Sandy, Utah, USA)
[I can provide you with low-cost, remote Database Administration services: see our website and contact me via
www.dasages.com]