出现这个问题的MYSQL的SQL语句形如:


DELETE FROM xxxxa WHERE EXISTS (SELECT * FROM xxxx1 WHERE xxxxa.xxid=123)
解决方法,把结果放在一个临时表里:
DELETE FROM xxxxa WHERE xxxxa.id IN (SELECT tmp.id FROM (SELECT * FROM xxxxaWHERE xxxxa.xxid=123)tmp);
 
但是oracle是可以的,说明mysql有待升级。