ADD COLUMN AT SPECIFIC OFFSET
Hi,
I want to add a column to a table in a specific position.
For example:
table : my_table (
a int,
c varchar,
d timestamp
);
I want to add column b between a and c. Is it possible?
thanks,
Pietro.
I want to add a column to a table in a specific position.
For example:
table : my_table (
a int,
c varchar,
d timestamp
);
I want to add column b between a and c. Is it possible?
thanks,
Pietro.
0
Comments
However, you could build a new table with full flexibility ( and column order desired) and swap the 2 tables to achieve the desired outcome.
If it too much painful to recreate a table(projections), as work around you can use in VIEWs. Define right column order in view, while to base table column will be added to end of column's list.
BTW: "add column" (no matter a position) will require to refresh table projections, so recreating a table or adding column + creating VIEW will cost same time "price".