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
在此先感謝您的任何答案或建議!
嗨StephaneM非常感謝!你能告訴我如何寫一個HQL方法在DAO實現???謝謝提前.. – User2413