HomeOracleOracle Error PLS-00319: subquery in an IN or NOT IN clause must contain exactly one column

Oracle Error PLS-00319: subquery in an IN or NOT IN clause must contain exactly one column

Oracle Error Message

PLS-00319: subquery in an IN or NOT IN clause must contain exactly one column

Reason for the Error

An invalid expression such as X IN (SELECT A,B …) was used. When a [NOT]IN clause is used with a subquery, it does not test for set membership. The number of expressions in the [NOT]IN clause and the subquery select list must match. So, in the example above, the subquery must specify at most one column.

Solution

Change the subquery to select only one column.

Share:

Leave a Reply

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...