我想同时插入多个表的数据;要写一个以上的sql语句;但是官网github也没发现怎么写。我试着改;但是报错。。有没有大神知道如何同时写多个sql?
比如我想执行以下两条语句
set @num=(select keyid from plogkey order by keyid DESC limit 1)+1;
INSERT INTO plogkey (keyid,kkey,ttype) VALUES( @num,"test2", 1);
statement => [ "set @num=(select keyid from plogkey order by keyid DESC limit 1)+1;INSERT INTO plogkey (keyid,kkey,ttype) VALUES( @num,?, ?);","alarm_level", 1]
会报错
在marialDB里面不会出错