有这么个sql语句:在pl/sql中能查出来结果,但是在java中用jdbc查不出结果来
select t2.parent_node,round(sum(t2.child_percent/100.0*t.score),2) from tram_valuatemodel_item t2,tram_valuateresult_item t where t2.main_id=6 and t.main_id=53 and t2.child_node=t.modelitem_id and t2.parent_node not in(select a.modelitem_id from tram_valuateresult_item a where a.model_id=6 and a.main_id=53) group by t2.parent_node;
查别的表或查其中一个表都可以,就是这两个表连查不行,但是在pl/sql中就行,请问是什么问题啊,帮忙解决一下啊
还有这两个表之间不是主子表关系,它们分别是别的主表的子表
java中用JDBC执行多表连查问题
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-