首页 > 技术文章 > Oracle ORA-00913: 值过多

of-course 2018-03-15 10:37 原文

备忘:

可以理解为,供过于求,你或你的表所需要的字段个数小于你通过sql语句给出的字段个数

 

--查询,A/B关联
--正常情况:
select a.* from A  a  where a.aid in (select b.aid from B b where 1=1);
--报错情况
select a.* from A a where a.aid in (select b.bid,b.aid from B b where 1=1);

 

推荐阅读