delete from table1
where no3 in
(select uuid
from table2
where (no1,decode(no2,'','C',no2)) in
(select a.no1,decode(a.no2,'','A',a.no2)
from table3 a));
where no3 in
(select uuid
from table2
where (no1,decode(no2,'','C',no2)) in
(select a.no1,decode(a.no2,'','A',a.no2)
from table3 a));
本文介绍了一种使用 SQL 语句来删除表1中特定记录的方法。这些记录基于表2和表3之间的复杂关联条件确定。具体来说,当表2中的 uuid 字段与表3中的 no1 和 no2 字段通过特定条件匹配时,将从表1中删除相应的记录。
892

被折叠的 条评论
为什么被折叠?



