日期:2014-05-17  浏览次数:20494 次

SQLite Studio 多个sql语句一起执行
insert into Sockets
  ( zoneindex, electricequipmentindex, brand, sockettype, vendor, communicationmode)
values
  (@_zoneindex, @v_electricequipmentindex, @v_brand, @v_sockettype, @v_vendor, @v_communicationmode);
insert into reportmeterdatadictionary
  ( variabletype, SocketIndex, variablename,  variableunits)
values
  ( 'real', (select max(SocketIndex) from Sockets),  'Name', 'Unites');

在oracle数据库中用分号可以同时执行。到这个不可以。 这个库怎么同时执行多条sql语句了。
不会写存储过程。

------解决方案--------------------
同时执行的原因是 让他们在同一个事物里?