How to delete multiple rows with 2 columns as composite primary key in MySQL? How to delete multiple rows with 2 columns as composite primary key in MySQL? mysql mysql

How to delete multiple rows with 2 columns as composite primary key in MySQL?


The answer in Oracle is:

delete from cpi where (countryid, year) in (('AD', 2010), ('AF', 2009), ('AG', 1992))

It's fairly standard SQL syntax and I think MySQL is the same.