My innodb table has the following structure: 4 columns (CountryID, Year, %Change, Source)
, with the 2 columns (CountryID, Year)
as the primary key. How do I delete multiple rows other than using a for-loop to delete each row?
I'm looking for something similar to
DELETE FROM CPI
WHERE CountryID AND Year IN (('AD', 2010), ('AF', 2009), ('AG', 1992))