I have 2 mySQL tables (table Master and table Backup) Some rows are copied to backup table and some not...
Now I need to delete those all rows from Master Table which are availble in Backup table with single query, coz approx. 700k+ rows are in both tables
Something like:
DELETE FROM master_table WHERE id IN (SELECT id FROM backup_table)
Of course it needs unique key on id field to work
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With