set lines 132
select distinct
owner,
name,
referenced_name
from
dba_dependencies
where
type in ('PACKAGE BODY','PROCEDURE','TRIGGER')
and
referenced_type = 'SEQUENCE';
select
referenced_name,
referenced_type
from
dba_dependencies
where
name='my_tablename';
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23895263/viewspace-693838/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/23895263/viewspace-693838/
本文提供两个SQL查询示例,第一个查询用于查找特定类型的对象(如包体、过程、触发器)所引用的所有序列。第二个查询则展示了如何找出指定表名的所有依赖项及其类型。
817

被折叠的 条评论
为什么被折叠?



