oracle with as 的用法

with event_trace as
(select * from w_user where user_name like '%a%')
select * from event_trace




相当于建个临时表 也相当于是一个针对sql的别名
语法就是
with tempname as (select ....)
select ...
posted @ 2015-03-18 09:15  饺子吃遍天  阅读(188)  评论(0编辑  收藏  举报