添加allowMultiQueries=true
jdbcUrl=jdbc:mysql://127.0.0.1:3306/database?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true
多条sql之间用;隔开
例子:
<delete id="cleanData">
DELETE FROM `user` WHERE uid=#{uid};
DELETE FROM user_game_data WHERE uid=#{uid};
DELETE FROM user_game_record WHERE uid=#{uid};
</delete>