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クエリがあります。同等の基準または HQL クエリは何ですか?
select max(id) from ( select max(id) id from TableA union select max(id) from TableB )
ありがとう!
HQL または Criteria に UNION がないため、同等のものはありません。いくつかの回避策は次のとおりです。