gpt4 book ai didi

sql - Oracle DML table_reference 是否存在解析器?

转载 作者:搜寻专家 更新时间:2023-10-30 23:23:52 25 4
gpt4 key购买 nike

或者是否有任何 oracle 数据字典告诉我在(物化) View 中引用了哪些表?

我想找出 DML 中使用了哪些表引用。我更喜欢使用 oracle 包,因为它可以自包含在数据库中。

但欢迎提出其他建议。非常欢迎开源。

这里是 table_reference 定义的语法图的链接: http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_10002.htm#i2126863

是否存在解析器?

最佳答案

当快照涉及多个表和/或 View 时,Venkataramesh 的答案 (dba_snapshots) 仅提供部分答案 - 要获取所涉及对象的完整列表,您可以使用 USER_DEPENDENCIES View :

select name, type, referenced_name, referenced_type
from user_dependencies
where type = 'MATERIALIZED VIEW'
order by name

关于sql - Oracle DML table_reference 是否存在解析器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2467735/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com