How to fix the Oracle error PLS-00386: type mismatch found at ‘string’ between FETCH cursor and INTO variables?
In this post, you’ll learn more about the Oracle ErrorPLS-00386: type mismatch found at ‘string’ between FETCH cursor and INTO variables with the details on why you receive this error and the possible solution to fix it.
Oracle Error Description
PLS-00386: type mismatch found at ‘string’ between FETCH cursor and INTO variables
Reason for the Error PLS-00386: type mismatch found at ‘string’ between FETCH cursor and INTO variables
An assignment target in the INTO list of a FETCH statement does not match in datatype with the corresponding column in the select list of the cursor declaration, and it is unclear which implicit conversion is required to correct the mismatch.
How to fix the Error PLS-00386: type mismatch found at ‘string’ between FETCH cursor and INTO variables ?
You can fix this error in Oracle by following the below steps
Change the cursor declaration or change the datatype of the assignment target. You might want to use datatype conversion functions in the select list of the query associated with the cursor.
Leave Your Comment