avatar
g*y
1
打开游标时报错,oerr 显示
01422, 00000, "exact fetch returns more than requested number of rows"
// *Cause: The number specified in exact fetch is less than the rows returned.
// *Action: Rewrite the query or change number of rows requested
但这个查询以前是能通过的。而且,数据量也不大。 <10000
求救。
avatar
p*s
2

The possible reason could be that you have a SELECT ... INTO statement.
Before long there is only 1 tuple qualified by WHERE clause. As you
just inserted some new tuples, now there are more than 1 tuples qualified.
Then SELECT INTO can't handle it, you must use cursor now.

【在 g*****y 的大作中提到】
: 打开游标时报错,oerr 显示
: 01422, 00000, "exact fetch returns more than requested number of rows"
: // *Cause: The number specified in exact fetch is less than the rows returned.
: // *Action: Rewrite the query or change number of rows requested
: 但这个查询以前是能通过的。而且,数据量也不大。 <10000
: 求救。

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。