HQL多表联合查询的问题
程序员文章站
2022-06-15 17:53:35
...
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