(1)Statement的批处理
--addBatch(String sql):把要执行的sql语句加入其中
--executeBatch():批量执行
(2)PreparedStatement的批处理
--addBatch():把先前设置的参数加入其中
--executeBatch():批量执行
注意:PreparedStatement的批处理只适合于插入、修改、删除操作。(1)Statement的批处理
--addBatch(String sql):把要执行的sql语句加入其中
--executeBatch():批量执行
(2)PreparedStatement的批处理
--addBatch():把先前设置的参数加入其中
--executeBatch():批量执行
注意:PreparedStatement的批处理只适合于插入、修改、删除操作。