select * from table1,table2 where table1.po_no=table2.po_no and table1.cust_no=table2.cust_no and table1.type=table2.type判断是否存在,存在则删除del
delete from table1 where ...
delete from table2 where ...