Skip to content
Advertisement

java.sql.SQLSyntaxErrorException: ORA-01797: this operator must be followed by ANY or ALL

My query is

I get the error java.sql.SQLSyntaxErrorException: ORA-01797: this operator must be followed by ANY or ALL whenever i run it,

What does it mean and how can I fix it ?

Advertisement

Answer

Your code is very messy and should be cleaned up. When asking the questions here you usually should create a MRE in which the concrete problem is highlighed, instead of pasting your whole code base here and letting us find your bugs.

Anyways since I got interested on this I spent a moment of googling and found your question already answered here.

It says the ORA-01797 is related to the query missing the to_date() constant.

From looking at your code I can see several places where it’s missing like the following one:

Try to fix it and then it should work. Hope it’ll help you

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement