ORA-00913

wylwyl1130 2004-07-08 02:47:33
写了一个存储过程出现
ORA-00913--值过多
请问why?
...全文
290 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
wylwyl1130 2004-07-09
  • 打赏
  • 举报
回复
自己解决了,是TOAD的问题,格式没有按照标准格式出的错
用别的都没有问题
谢谢各位了
freddy2003 2004-07-09
  • 打赏
  • 举报
回复
在需要一个值的时,你有多个值,这样情况多出现在子查询中

如:
select * from table1 where aa=(select kk from table2)
在处aa只能有一个值,可是在select kk from table2语句中返回多个值

改为
select * from table1 where aa in (select kk from table2)
就正确了
dinya2003 2004-07-09
  • 打赏
  • 举报
回复
两列不匹配,把你的代码及需求帖出来看看呢/
wylwyl1130 2004-07-08
  • 打赏
  • 举报
回复
我早就检查过了,都是一样的列
seutxf77 2004-07-08
  • 打赏
  • 举报
回复
Cause: The SQL statement requires two sets of values equal in number. This error occurs when the second set contains more items than the first set. For example, the subquery in a WHERE or HAVING clause may return too many columns, or a VALUES or SELECT clause may return more columns than are listed in the INSERT.

Action: Check the number of items in each set and change the SQL statement to make them equal.

17,082

社区成员

发帖
与我相关
我的任务
社区描述
Oracle开发相关技术讨论
社区管理员
  • 开发
  • Lucifer三思而后行
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧