我正在尝试删除所有类似的关系
SELECT *
FROM wr_entidadUsuario a
WHERE a.entidad_id IS NOT NULL
AND a.usuario_id IN (117)
AND a.entidad_id IN (330,429,425,427,428
,308, 10,313,400,357
,406,416,356, 46,314
,104,326,327,328,361
,351,360,399,282,310)
返回22行
但是当我尝试删除这些行时,只有1个受影响
DELETE a
FROM wr_entidadUsuario a
WHERE a.entidad_id IS NOT NULL
AND a.usuario_id IN (117)
AND a.entidad_id IN (330,429,425,427,428
,308, 10,313,400,357
,406,416,356, 46,314
,104,326,327,328,361
,351,360,399,282,310)
受影响的一行
问题是什么?
我正在使用mysql