Mybatis中Mysql执行多条语句

在数据库连接后添加

allowMultiQueries=true

映射文件中的标签下将多条sql用;隔开即可

猜你喜欢

转载自blog.csdn.net/shangshanling/article/details/80064213