会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
RUI2022
博客园
首页
新随笔
联系
订阅
管理
2023年3月13日
Mybatis-lesson09-多对一查询 (查询所有的学生及对应的老师信息)方法二-结果嵌套查询-03-13
摘要: 第二种方法,采用结果查询:但老师的ID 要和学生的TID有个对应关系 注意事宜:SQL语句需加上 t.id tid 如果不注明 查出来的老师ID 则为O <select id="getStudent2" resultMap="StudentTeacher2"> select s.id sid,s.n
阅读全文
posted @ 2023-03-13 07:09 Rui2022
阅读(40)
评论(0)
推荐(0)
编辑
公告