甲骨文在线视图 [英] oracle-inline view

查看:115
本文介绍了甲骨文在线视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么要使用内联视图?.

Why inline views are used..??

推荐答案

使用内联视图有许多不同的原因.没有内联视图,某些事情是无法完成的,例如:

There are many different reasons for using inline views. Some things can't be done without inline views, for example:

1)根据分析函数的结果进行过滤:

1) Filtering on the results of an analytic function:

select ename from
( select ename, rank() over (order by sal desc) rnk
  from emp
)
where rnk < 4;

2)在有序结果上使用ROWNUM:

2) Using ROWNUM on ordered results:

select ename, ROWNUM from
( select ename
  from emp
  order by ename
);

有时,它们只是使编写要编写的SQL更容易.

Other times they just make it easier to write the SQL you want to write.

这篇关于甲骨文在线视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆