Oracle批量创建同义词

前端之家收集整理的这篇文章主要介绍了Oracle批量创建同义词前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
begin for arr in ( select 'create or replace synonym ' || b.OBJECT_NAME || ' for ' || B.OWNER || '.' || B.OBJECT_NAME row_i from dba_objects B where OWNER = 'APPS' AND object_type = 'TABLE' ) loop begin execute immediate (arr.row_i); EXCEPTION WHEN OTHERS THEN dbms_output.put_line(arr.row_i); end; end loop; end; 原文链接:https://www.f2er.com/oracle/211638.html

猜你在找的Oracle相关文章