jdbcTemplate.batchUpdate,里面的sql[]必须是形同的吗?
比如insert into table select ? ? ?
语句都一样,只是参数不一样,这样子是可以的。
那是否可以是几个不相干的语句,
比如insert into table1 select 1,2,3
    update table1 set a=1 where id = 100
    update table2 set b=1 where id = 101
    delete from table3 where id =102如果这是4条语句每一个都有100条,是应该建立4个批处理呢,还是相同表名的放一起,建3个批处理,还是都放在1个批处理里?
麻烦各位大虾给个方案,并说明理由,不胜感激:)