I have 2 table. table1 have 2 million records and table2 have 11 million record i want to delete table1 from table2 how i do this in MySQL and for this count of data how much that take?
thank you.
I have 2 table. table1 have 2 million records and table2 have 11 million
Share
It sounds like you are wanting to delete all records in table 2 that match a record in table 1. If so, you could use a subquery. I’m not sure about how efficient this would be with the number of records you have, but the following should work: