[英]oracle alias in where clause
I am inside oracle procedure 我在oracle程序里面
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? 现在我可以在另一个查询的where子句中传递别名,而不是再次将上述查询作为子查询吗?
是的,提供其范围(例如,您要加入WHERE所在的FROM子句中的子查询)。
Question's not making a lot of sense. 问题没有多大意义。 Can you provide an example? 你能举个例子吗? Why don't you define your query as a cursor that you can call repeatedly, or loop through? 为什么不将查询定义为可重复调用或循环访问的游标?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.