oracle多表关联删除的两种方法
第一种使用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 )
作者:BosyJ
轉載:https://www.cnblogs.com/pejsidney/
本站使用「署名 4.0 国际」创作共享协议,转载请在文章明显位置注明作者及出处。
浙公网安备 33010602011771号