2010-05-25 302 views
0

我有兩個單獨的表:

表1 - ID,新聞,DATE_ADDED
表2 - ID,新聞,額外的,DATE_ADDED提取數據

是否有可能查詢這兩個表,並提取數據ORDER BY DATE_ADDED
感謝

回答

1

試試這個

select id, news, date_added,"" as extra 
from table1 
union all 
select id, news, date_added,extra 
from table1 
ORDER BY date_added