Oracle多表关联删除记录的方法

来源:互联网 发布:淘宝可以卖药品吗 编辑:程序博客网 时间:2024/05/16 12:40
-- 第一种使用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  )  

0 0
原创粉丝点击