【JMeter】执行多条sql语句

1、

【JDBC Connection Configuration】 在配置DataBase URL的时候,加上allowMultiQueries=true参数:

jdbc:MySQL://127.0.0.1:3306/mysql?allowMultiQueries=true

 

 

2、【JDBC Request】 在jdbc请中,Query Type一定要选择 Callable statement,使用Callablestatement时,一次可以包含多个SQL,但非结尾的SQL要加“;” 

 

posted @ 2022-05-06 16:38  pearl007  阅读(230)  评论(0编辑  收藏  举报