SELECT *
FROM
(
SELECT case_id,diagnosis_title,updated
FROM tbl_case
order by updated desc
) as table1
UNION
select *
FROM
(
select image_id,image_title,updated
from tbl_image
order by updated desc
) as table2
如何以混合順序顯示記錄。當前tbl_Case
記錄顯示第一部分和tbl_image
記錄顯示在第二部分。按工會查詢日期排序
我想混合輸出。 ORDER BY
應該適用於這兩個表。
是否可以爲每個選擇添加限制 – user1127564 2012-08-18 16:31:20