Ora-01008: not all variables are bound

OPEN PO_EXPCUR FOR V_QUERY_SQL USING …

This code will throw ora-01008 when the parameter setting is wrong: not all variables are bound

Reason: when executing a dynamic SQL statement, the number of variables filled in the SQL string is inconsistent with the number of variables bound in the using keyword.

Read More: