Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

add columns with ALTER TABLE, but put them not at the end?

david.karrAug 6 2010 — edited Aug 9 2010
I need to add some columns with an ALTER TABLE statement, but the default column order will put those columns at the end in a SQL browser. I'd rather put them in specific locations in the default column order. I can't do a DROP TABLE. I considered having an ALTER TABLE with a DROP clause including all of the existing columns, then an ADD clause including all the columns, including the new ones. However, wouldn't that result in a loss of data?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 6 2010
Added on Aug 6 2010
5 comments
2,364 views