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;

Comments

Popular posts from this blog

ORA-04062: timestamp of procedure has been changed

ORA-00939: too many arguments -when case arguments exceed 255

ORA-31655: no data or metadata objects selected for job