有两个表 表 A 字段 ID1 表 B 字段ID2 结构都相同 删除B里 所有B.ID2=A.ID1 匹配的数据 delete from B a where exists (select * from A b where B.DI2=A.ID1)注:B的ID2字段和A的ID1字段要建索引