在Oracle中执行以下操作的查询是什么?
答案 0 :(得分:6)
获取所有观点的名称:
一个。由当前用户拥有:
SELECT view_name
FROM USER_VIEWS;
湾当前用户可以看到:
SELECT view_name
FROM ALL_VIEWS;
℃。在场:
SELECT view_name
FROM DBA_VIEWS;
查看特定视图的来源
选择文字 来自xxx_VIEWS WHERE view_name =:myviewname;
(xxx可以是USER,ALL或DBA)
答案 1 :(得分:2)
要在sqlplus中查看视图的定义:
describe MY_VIEW;
答案 2 :(得分:0)
此查询将获取架构中的视图名称。
select object_name
from user_objects
where object_type = 'VIEW'
获取视图源的查询?
SQL> select dbms_metadata.get_ddl('VIEW', 'VIEW_NAME', 'USERNAME')
2 from dual
3 /
答案 3 :(得分:0)
用户拥有的观看次数
select * from USER_VIEWS ;
检查oracle对象元数据
答案 4 :(得分:0)
1. select OWNER,
OBJECT_NAME,
to_char(CREATED,'MM/DD/YYYY HH24:MI:SS') created,
status
from dba_objects
where OWNER not in ('SYS','SYSTEM')
and OBJECT_TYPE='VIEW'
order by OWNER,OBJECT_NAME
- select TEXT FROM DBA_VIEWS where OWNER ='owner_name' and VIEW_NAME= 'view_name'