Oracle Error PLS-00326: IN clause must contain same number of expressions as subquery

Oracle Error Message

PLS-00326: IN clause must contain same number of expressions as subquery

Reason for the Error

The number of expressions in an IN clause did not equal the number of expressions in a corresponding subquery select list. For example, the following statement is invalid because the IN clause contains two expressions, but the subquery select list contains just one: … WHERE (ename, sal) IN (SELECT sal FROM emp);

Solution

Check the number of expressions in each set, then revise the statement to make the numbers equal.

Share:

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

Oracle Error Message ORA-24328: illegal attribute value Reason for the Error The attribute value passed in is illegal. Solution Consult...
Oracle Error Message ORA-01346: LogMiner processed redo beyond specified reset log scn Reason for the Error LogMiner has detected a...
Oracle Error Message ORA-13241: specified dimensionality does not match that of the data Reason for the Error An error occurred...