时间:2021-07-01 10:21:17 帮助过:44人阅读
HQL多表联合查询的问题 HQL多表查询只想查询出要的对象的时候 from AAA as a,BBB as b where a.a = b.a 这里取出会是俩个对象 HQL想要只取出一个对象的时候可以这样写 select a from AAA as a,BBB as b where a.a = b.a
HQL多表联合查询的问题
HQL多表查询只想查询出要的对象的时候
from AAA as a,BBB as b where a.a = b.a
这里取出会是俩个对象
HQL想要只取出一个对象的时候可以这样写
select a from AAA as a,BBB as b where a.a = b.a