oracle 創建一個視圖,而後受權其餘用戶訪問

grant select on V_LIC_ENTRY_HZ_STATUS to ielicr2013;select

 

create or replace view dept_sum_vw
(name,minsal,maxsal,avgsal)
as
select d.dname,min(e.sal),max(e.sal),avg(e.sal)
from emp e,dept d
where e.deptno=d.deptno
group by d.dname; view

相關文章
相關標籤/搜索