Oracle Error PLS-00515: The type of the REF INTO variable ‘string’ must be REF to the table’s type

Oracle Error Message

PLS-00515: The type of the REF INTO variable ‘string’ must be REF to the table’s type

Reason for the Error

In INSERT statement with REF INTO clause, the type of the data item must be REF to the type of the table used in INTO clause.

Solution

None