开发者

oracle alias in where clause [duplicate]

开发者 https://www.devze.com 2023-01-07 10:05 出处:网络
This question already has answers here: Using an Alias 开发者_Go百科in a WHERE clause (5 answers) Closed 7 months ago.
This question already has answers here: Using an Alias 开发者_Go百科in a WHERE clause (5 answers) Closed 7 months ago.

I am inside oracle procedure

I have a complex query with join which gives single value to which i assign alias

now can i pass alias in where clause in another query rather than making above query again as subquery?


Yes, provided its in scope (ie a subquery you're joining to in the FROM clause that the WHERE exists in).

0

精彩评论

暂无评论...
验证码 换一张
取 消