Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下 SQL 查询。什么是等效的 Criteria 或 HQL 查询?
select max(id) from ( select max(id) id from TableA union select max(id) from TableB )
谢谢!
没有等价物,因为 HQL 或 Criteria 中没有 UNION。一些解决方法是: