gpt4 book ai didi

hadoop - 如果两个表配置单元中有相似的列值,则比较两个表并从一个表中删除行

转载 作者:行者123 更新时间:2023-12-02 20:29:52 25 4
gpt4 key购买 nike

Table description are in the link

表1和表2的行带有A和D。我需要将这两个从表2中删除。

请检查以下链接以获取描述性详细信息。谢谢 。

最佳答案

您可以使用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

关于hadoop - 如果两个表配置单元中有相似的列值,则比较两个表并从一个表中删除行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53794307/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com