oracle--with as
Posted 未来的那啥
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了oracle--with as相关的知识,希望对你有一定的参考价值。
with as把一段查询结果放在临时表,后面的查询中可多次使用
语法:
with 别名 as(select * from table)
或
with 别名1 as(select * from table1),
.............
别名n as(select * from tablen)
示例:
with 别名 as(select * from table where ....) select * from 别名
ps:使用with as最后的select返回不能不写啊!!!!
以上是关于oracle--with as的主要内容,如果未能解决你的问题,请参考以下文章