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