现在有个sql语句,类似
"select * from tab where IsTop=1 order by OrderValue,CreateTime
union all
select * from tab where IsTop=0 order by CreateTime"
这样,怎么写hql语句(查资料说hql不支持union)?
...全文
2181打赏收藏
关于hql union 的问题
现在有个sql语句,类似 "select * from tab where IsTop=1 order by OrderValue,CreateTime union all select * from tab where IsTop=0 order by CreateTime" 这样,怎么写hql语句(查资料说hql不支持union)?