I need to reorder some columns in a table using the DBMS_REDEFINITION package. How do I do this for a table such as
create table a (z number, x number);
such that the reordered table has x as the first column?
(context: I'm writing some utilities that are adding some metadata columns to some existing tables, and it will be useful for all concerned if the metadata columns are at the front so they will be conveniently viewable when pulled up in sql developer or another table browsing tool. I'm aware of the argument that for logical processing column order doesn't matter, but this is for making the tables easier to comprehend using readily available tools.)