简体   繁体   中英

ORA-01762, sub-query in select

I have a very huge statement and during the execution, I am always getting this error:

ORACLE - ORA-01762: vopdrv: view query block not in FROM.

It seems like it is an internal error and my only chance is trying to rewrite my statement.

My statement looks like this:

Select column1, column2, (Select CASE WHEN ......A.column=..., B.column=..)
FROM
Table1, (Select ...) A, (Select...) B

So I have a select-query in my Select Statement which references columns in the from part. This error goes away If I remove the subquery in my select-statement, however I don't know how to exactly rewrite it. I have tried to move it in the from-part, however I cannot reference other tables like A or B. I am not sure how to do it

您可能不需要第二选择:

Select column1, column2, (CASE WHEN ......A.column=..., B.column=..)...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM