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 CLSGN-32767: Internal error. Reason for the Error An unexpected error occurred. Solution Examine the message(s) that accompany...
Oracle Error Message CLSGN-00211: OCR batch operation failed. string Reason for the Error Setting a set of Oracle Cluster Registry...
Oracle Error Message CLSGN-00210: failed to get value for OCR key “string”. string Reason for the Error It was not...