使用第二个表中的数据从一个表中删除数据
我有一个表1,其中有一个百万个数据和一个完全相同的表2,只有106个数据。如何从表1中删除这106个数据? 在这两个表中,我有ID,DATE,PARMAN0,PARAM1,PARAM2等字段。
I have a table table1, where there is a million data and a completely identical table table2, only there are only 106 data. How it is possible to delete these 106 data from table1?
In these two tables i have fields like id, date, param0, param1, param2.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假定这两个表中的
id
列都可以实现这种唯一性,然后:否则,添加更多列(in where 子句),这将帮助您仅删除您真正的行想。
Presuming that uniqueness is enforced through the
ID
column in both tables, then:Otherwise, add some more columns (into the
where
clause) which will help you delete only rows you really want.