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

前端 未结 7 1839
余生分开走
余生分开走 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 05:48

    The sql that defined the view can be found in all_views

    set long 9999 
    select TEXT from all_views where VIEW_NAME='MYVIEW';
    

    This is the only way to get at the underlying tables and columns.

提交回复
热议问题