您的位置:首页 > 数据库

SQL点滴积累3--detete 删除的目标表数据与其他表有关联关系

2013-08-15 11:43 796 查看
删除a表中与b表重复的数据

1)delete from a where exists (select * from b where ***)

2)delete from a from a inner join b on a.id=b.id where ***
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: