1.得到表3select a.* ,b.col2 from 表1 a,表2 b where a.col1=b.col12.
delete from 表1 where col1 not in(select col1 from 表2)
select * from 表1