-- 第一种使用exists方法
delete
from tableA
where exits
(
select 1
from tableB
Where tableA.id = tableB.id
)
-- 第二种使用匿名表方式进行删除
delete
from
(
select 1
from tableA,TableB
where tableA.id = tableB.id
)
Oracle多表关联删除记录的方法
最新推荐文章于 2024-04-01 07:54:37 发布