SQL语句如下:
delete from copyspy.iptables a where a.ip in (select b.ip from copyspy.iploginlog b where b.mac = ?);
这条SQL语句放到Oracle数据库中去执行是可以正常执行的,但是放到MySQL数据库中执行时就出现了如下的错误:
[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'a where a.ip in (select b.ip from copyspy.iploginlog b where b.mac = ?)' at line 1