polju 发表于 2014-1-14 10:13:14

SQL 删除存在于A表但是不存在B表中的记录

目的是是的A表和B表某一个列集合相等

delete from A where tagetColumn not in ( select targetColumn from B)

页: [1]
查看完整版本: SQL 删除存在于A表但是不存在B表中的记录