Hello,
I have about 60 tables with about 70 indexes between them. I need to add a new field to all of the tables. Once the new field is on all of the tables, I need to recreate all of the existing indexes using the new field instead of one of the existing fields. I.E. if the existing index is:
create index a_idx on p.table
(d, e, f)
the new one needs to be;
create index a_idx_1 on p.table
(x, e, f)
(In every existing index field d has to replaced with field x.)
Does anyone have any ideas? I have TOAD and could just cut and paste the scripts that it generates but I would have to do this a table at a time. It just seems that there has to be a better way.
Thanks,
Padre
I have about 60 tables with about 70 indexes between them. I need to add a new field to all of the tables. Once the new field is on all of the tables, I need to recreate all of the existing indexes using the new field instead of one of the existing fields. I.E. if the existing index is:
create index a_idx on p.table
(d, e, f)
the new one needs to be;
create index a_idx_1 on p.table
(x, e, f)
(In every existing index field d has to replaced with field x.)
Does anyone have any ideas? I have TOAD and could just cut and paste the scripts that it generates but I would have to do this a table at a time. It just seems that there has to be a better way.
Thanks,
Padre