I have two tables table1 and table2. Each is over 1 million rows. Table2 has some records that are also in table1. I need to delete the rows from table2 that are also in table1. I've tried this:
Both tables only have one column called record. If I run the above command it just chugs for hours and never finishes.
Code:
delete * from table2 where record in (select * from table1 where record like "1%");
Both tables only have one column called record. If I run the above command it just chugs for hours and never finishes.