HomeOracleOracle Error PLS-00412: list of values not allowed as argument to this function or procedure

Oracle Error PLS-00412: list of values not allowed as argument to this function or procedure

Oracle Error Message

PLS-00412: list of values not allowed as argument to this function or procedure

Reason for the Error

A parenthesized list of values separated by commas (that is, an aggregate) was used in the wrong context. For example, the following usage is invalid: WHERE (col1, col2) > (SELECT col3, col4 FROM my_table …) However, an equal sign can take a list of values and a subquery as left- and right-hand-side arguments, respectively. So, the following usage is valid: WHERE (col1, col2) = (SELECT col3, col4 FROM my_table …)

Solution

Rewrite the expression. For example, the clause WHERE (col1, col2) > (SELECT col3, col4 FROM my_table …) can be rewritten as WHERE col1 > (SELECT col3 FROM my_table …) AND col2 > (SELECT col4 FROM my_table …)

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