Script to generate create index statement
Script to generate create index statement
SELECT 'create '
|| t1.index_type
|| ' index '
|| t1.index_name
|| ' on '
|| t1.table_name
|| '('
|| t2.column_name
|| ') tablespace indx;'
FROM user_indexes t1, user_ind_columns t2
WHERE t1.index_name = t2.index_name;
SELECT 'create '
|| t1.index_type
|| ' index '
|| t1.index_name
|| ' on '
|| t1.table_name
|| '('
|| t2.column_name
|| ') tablespace indx;'
FROM user_indexes t1, user_ind_columns t2
WHERE t1.index_name = t2.index_name;
Comments
Post a Comment