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.
我需要使用 HQL 来适应以下 sql 查询。
A 是作者,B 是书 - 作者有很多书
SQL:
order by a.bookNbr desc, nvl(b.auth_name, b.last_name || ' ' || b.first_name))
将上述 sql 转换为 HQL 的任何帮助将不胜感激。
你试过了吗
order by a.bookNbr desc, coalesce(b.auth_name, b.last_name + " " + b.first_name))