第一步: 建表 create table t1(x int, y int); create table t2(x int, y int); go insert into t1(x,y) values(1,2),(2,3),(3,4),(4,5),(5,6); insert into t2(x,y) values(1,2),(2,3); go 第二步: 删除t1表中的相关行 delete a from t1 as a inner join t2 as b on a.x=b.x; 第三步: 第二步就