sqlserver 删除操作是否可以内连接 比如 Delete from table a inner join table2 b on a.id= b.id

2024-12-15 15:48:28
推荐回答(2个)
回答1:

delete a from table1 a inner join table2 b on a.id=b.id

回答2:

Delete from table where id in (select id from table2)