我试图删除多行两个标识符:
DELETE FROM [Customers]
WHERE (City,Country) IN (('Buenos Aires', 'Argentina'), ('Graz', 'Austria'))
我收到此错误:
Error 1: could not prepare statement (1 row value misused)
无法删除多个标识符的多行?
答案 0 :(得分:2)
如果您的数据库不支持元组,只需使用显式AND
/ OR
逻辑:
DELETE FROM [Customers]
WHERE (City = 'Buenos Aires' AND Country = 'Argentina') OR
(City = 'Graz' AND Country = 'Austria');