reslstancelsfutlle
2012-02-01 11:39:16 UTC
A query of the index table returns this information:
------------------------------------------------------------------------------------------------------------------
TABLENAME_1 | INDEXNAME_1 | COMMASEPARATEDLISTOFCOLUMNS_1
------------------------------------------------------------------------------------------------------------------
TABLENAME_2 | INDEXNAME_2 | COMMASEPARATEDLISTOFCOLUMNS_2
-------------------------------------------------------------------------------------------------------------------
I would like to be able to loop through the table of results and do this:
LOOP ITERATION 1
CREATE INDEX INDEXNAME_1 ON TABLENAME_1
(COMMASEPARATEDLISTOFCOLUMNS_1)
LOOP ITERATION 2
CREATE INDEX INDEXNAME_2 ON TABLENAME_2
(COMMASEPARATEDLISTOFCOLUMNS_2)
.
.
.
.
LOOP ITERATION N
CREATE INDEX INDEXNAME_N ON TABLENAME_N
(COMMASEPARATEDLISTOFCOLUMNS_N)