问题遇到的现象和发生背景
比如想从A表中剔除B表里某字段为1的数据
问题相关代码,请勿粘贴截图
create table if not exists testA(
user_id string,
user_name,
level string
);
create table if not exists testB(
user_id string,
tag int
);
--testA和testB两张表可以通过user_id相关联,现在希望两表关联,testB中tag字段为1的,从testA表里剔除出去
运行结果及报错内容
我的解答思路和尝试过的方法
我想要达到的结果
testA和testB两张表可以通过user_id相关联,现在希望两表关联,testB中tag字段为1的,从testA表里剔除出去