mybatisxml执行多条语句

编程

url: jdbc:mysql://127.0.0.1:3306/user?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&allowMultiQueries=true`

//每条sql以分号结束
 <delete id="delete">
     delete from table1 where id = 1;
     delete from table2 where id = 2;
 <delete>


ORACLE:

//每条sql以分号结束,end也是分号结束
<delete id = "delete">
    begin
    delete from table1 where id = 1;
     delete from table2 where id = 2;
     end;
<delete>

以上是 mybatisxml执行多条语句 的全部内容, 来源链接: utcz.com/z/517956.html

回到顶部