KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
When one uses "ALTER TABLE tab ADD col", the new column gets added to the end of the table. For example: TABLE: TAB COL_1 COL_2 COL_4 ALTER TABLE TAB ADD COL_3 table will become TABLE: TAB COL_1 COL_2 COL_4 COL_3 However as the naming of my example columns suggests I'd actually like the table to end up like this: TABLE: TAB COL_1 COL_2 COL_3 COL_4 With COL_3 before COL_4. Besides rebuilding the table from scratch, is there any standard SQL that will get the job done? However if there is no standard SQL, I could still use some vendor dependent solutions for Oracle, but again a standard solution would be best. Thanks.
Tags (comma-separated)
Save Edits
Cancel