实现方法: 
SQL> create table a (
  2  bm char(4), --编码
  3  mc varchar2(20) --名称
  4  )
  5  /表已建立.SQL> insert into a values('1111','1111');
SQL> insert into a values('1112','1111');
SQL> insert into a values('1113','1111');
SQL> insert into a values('1114','1111');
SQL> insert into a values('1115','1111');SQL> create table b as select * from a where 1=2;表已建立.SQL> insert into b values('1111','1111');
SQL> insert into b values('1112','1111');
SQL> insert into b values('1113','1111');
SQL> insert into b values('1114','1111');
SQL> commit;完全提交.
SQL> select * from a;BM   MC
---- --------------------
1111 1111
1112 1111
1113 1111
1114 1111
1115 1111SQL> select * from b;BM   MC
---- --------------------
1111 1111
1112 1111
1113 1111
1114 1111方法一:exists子句SQL> delete from a where exists (select 'X' from b where a.bm=b.bm and a.mc=b.mc);删除4个记录.where条件:如果两个表中都拥有相同字段的主键(primary key),则只需比较两个主键就可以了方法二:in子句SQL> delete from a where (bm,mc) in (select bm,mc from b);删除4个记录.SQL> select * from a;BM   MC
---- --------------------
1115 1111实际测试结论:
在表不是很大时,用in子句速度还可以忍受,而如果记录量很多时(十万条以上),in子句简直让人难以人忍受,速度奇慢。