oracle delete 语法

有两个表 temp_3 字段 id3和time 有30多万的数
表 temp_5 字段 id5和time 有50多万的数 结构都相同
现在想删除temp_5里 所有temp_5.id5=temp_3.id3 匹配的数据
sql怎么写

第1个回答  2011-11-20
delete from temp_5 a where exists (select 1 from temp_3 b where a.id5=b.id3)
相似回答