How can I find the underlying column and table name for an Oracle view?

前端 未结 7 1846
余生分开走
余生分开走 2021-01-23 05:34

This sounds like it should be simple to do but not so! There is no Oracle (meta-data) view that I can find that gives the underlying column and table name for an Oracle view col

7条回答
  •  心在旅途
    2021-01-23 06:09

    Since the requester is looking for any instance of his table, and not with respect to a specific view, I would recommend:

    SELECT *
      FROM DBA_DEPENDENCIES
     WHERE TYPE = 'VIEW'
       AND REFERENCED_TYPE = 'TABLE'
       AND REFERENCED_NAME = ''
    

提交回复
热议问题