Hello All,
Can we a add a column into an existing table at a specific ordinal position.
I can see the ordinal postions of columns in the columns table, If I want to add a column in middle of ordinal positions, Can we do it.
Is there some different alter table statement.
I want to do it using Alter table statement.
Thanks
add column in ordinal positions
Moderator: NorbertKrupa
- JimKnicely
- Site Admin
- Posts: 1825
- Joined: Sat Jan 21, 2012 4:58 am
- Contact:
Re: add column in ordinal positions
Hi,
I believe you have to create a temp table and projections with your new column, copy data into it for the original table, drop your old table and rename the new table to the old table.
I believe you have to create a temp table and projections with your new column, copy data into it for the original table, drop your old table and rename the new table to the old table.
Jim Knicely
Note: I work for Vertica. My views, opinions, and thoughts expressed here do not represent those of my employer.
Note: I work for Vertica. My views, opinions, and thoughts expressed here do not represent those of my employer.