答案 0 :(得分:0)
您可以使用INSERT OVERWRITE
选择查询来进行LEFT JOIN
。
INSERT overwrite TABLE table2
SELECT t2.*
from table2 t2
LEFT JOIN table1 t1
on (t1.x = t2.p) --use appropriate common column name
WHERE t1.x is NULL; --where there's no common element in t2