2014-02-18 160 views
0

這是從兩個表中獲取數據如何爲以下SQL查詢編寫HQL查詢?

博客

askquestions查詢

HQL查詢以下SQL查詢:

select title , date from (select blog_title as title ,created_date as date from blog union select ask_question as title , created_on as date from askquestions) as aa order by date desc 

在此先感謝您的任何答案或建議!

回答