求助mybatis两表连接怎么返回值的问题?如下
java吧
全部回复
仅看楼主
level 10
西门_吹雪pj
楼主
单表时候能行,两表连接时候就查不出来了?
select sc.sno,sc.cno,sc.sctimes,sc.scfile,sc.sctime
from sc,student
where sc.sno = student.sno and student.sclass=#{sclass} and sc.sctimes=#{times};
下面是返回类型:单表时候能行,两表连接时候就查不出来了?
2015年03月27日 15点03分
1
level 10
西门_吹雪pj
楼主
BaseReasultMap是SC类的属性
2015年03月27日 15点03分
2
level 10
西门_吹雪pj
楼主
求助大神了
2015年03月27日 16点03分
3
level 10
西门_吹雪pj
楼主
求
2015年03月27日 16点03分
4
level 9
b750101140
不懂装顶
2015年03月27日 16点03分
5
level 10
西门_吹雪pj
楼主
求大神啊,给我看看呗
2015年03月27日 16点03分
6
level 11
王艺翔啊
多表联查要么是嵌套式,要么是内联式,好久不用有点忘了,不知道对不对
2015年03月27日 16点03分
7
王艺翔啊
楼主仿照我这个格式改一下看看好不好使
2015年03月27日 16点03分
西门_吹雪pj
回复 王艺翔啊 :SQL语句我会写,就是两表连接的返回值搞不懂
2015年03月27日 17点03分
1