sql 以B表为依据删除A表数据

表A有ID
表B有表A部分ID
把表B里有的ID在表A里都删除

delete from A where A.ID in (select B.ID from B)
温馨提示:答案为网友推荐,仅供参考
相似回答