假设我有如下所示的2个表。现在,如果我想要使用SQL语句
那么如何在Hive中实现这个功能呢?
表A:
insert into B where id not in(select id from A)
来实现想要的结果,它将会在表B中插入3 George
。那么如何在Hive中实现这个功能呢?
表A:
id name
1 Rahul
2 Keshav
3 George
表B
id name
1 Rahul
2 Keshav
4 Yogesh