aiaiDBA

加微信获取免费职业规划+学习资料,了解年薪50万的DBA是如何练成的

13718043309

010-86462881

PLS-00386: type mismatch found at 'string' between FETCH cursor and INTO variables

PLS-00386: type mismatch found at 'string' between FETCH cursor and INTO variables
Cause: 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.
Action: 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.

请先 登录 后评论

1 个回答

小智
PLS-00386:在FETCH游标和INTO变量之间的' string '处找到类型不匹配,
.原因: FETCH语句的INTO列表中的分配目标在数据类型与游标声明的选择列表中的相应列不匹配,并且不清楚需要哪个隐式转换来纠正不匹配。,
.操作:更改游标声明或更改分配目标的数据类型。您可能希望在与光标相关联的查询的选择列表中使用数据类型转换函数。,
.
请先 登录 后评论