修改索引:
select
'alter index '||i.index_name||' rename to '||fn_getpy(i.index_name,3)||';',
i.table_name,i.tablespace_name
from user_indexes i where index_name like '%表%'
修改约束:
select
'alter table '||i.table_name ||' rename constraint '||i.constraint_name||' to '||fn_getpy(i.constraint_name,3)||';',
i.table_name
from user_constraints i where constraint_name like '%表%'