参考:http://blog.csdn.net/bluishglc/article/details/6637584
解决方法:
取得connection后先执行禁用外键检查
connection.getConnection().prepareStatement("set @@session.foreign_key_checks = 0").execute();
参考:http://blog.csdn.net/bluishglc/article/details/6637584
解决方法:
取得connection后先执行禁用外键检查
connection.getConnection().prepareStatement("set @@session.foreign_key_checks = 0").execute();