hibernate from 子查询
- 作者: 摸几格格
- 来源: 51数据库
- 2020-12-10
老版本的hql不支持子查询,新版本的支持。 但是Hibernate HQL的子查询不支持from的子查询,解决方法: 1.原sql select * from xxx a ,(select distinct(id),max(date) time from xxx group by id) b where a.id=b.id and a.date=b.time
可以私聊我~
可以私聊我~
推荐阅读
