两个对象:

学生表:Student

课程表:Course

两者的关系是多对多,当查询Student对象,并以Course对象作为条件时的sql语句写法如下:

select pa from Student pa inner join pa.Courses as course where course.name='数学'

相关文章:

  • 2021-05-23
  • 2018-10-12
  • 2022-02-22
  • 2021-11-23
  • 2021-06-08
  • 2022-12-23
  • 2021-12-27
  • 2021-12-24
猜你喜欢
  • 2022-12-23
  • 2022-01-14
  • 2021-04-01
  • 2021-04-20
  • 2021-08-13
  • 2022-01-27
相关资源
相似解决方案