答案 0 :(得分:0)
很少继续下去,但可能会像:
SELECT table1.Id, table1.Name [, table1.etc]
FROM table1 LEFT JOIN table2
ON table1.Id = table2.id
WHERE table2.id is null
UNION
SELECT table2.Id, table2.Name [, table2.etc]
FROM table2 LEFT JOIN table1
ON table2.Id = table1.id
WHERE table1.id is null