注册

关联删除语句

果不其蓝 2022/11/24 1544 4 已解决

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】: V8
【操作系统】: centos7
【CPU】: arm
【问题描述】*: 期望删除表tmp_a中的数据,条件是和tmp_b表的对应字段值相等。
create table tmp_a(
column_a int,
column_b int,
column_c int
);

create table tmp_b(
column_a int,
column_b int,
column_c int
);

delete from tmp_a a using tmp_b b on a.column_a = b.column_a and a.column_b = b.column_b; – 这里是参考Oracle的写法,但是目前好像不管用

回答 0
暂无回答
扫一扫
联系客服