PreparedStatement对象变量实例化,如果要进行操作的SQL语句是Insert批量操作,当记录用addBatch()

PreparedStatement对象变量实例化,如果要进行操作的SQL语句是Insert批量操作,当记录用addBatch()追加到对象后,调用()方法执行数据库查询。

A.execute()

B.executeQuery()

C.executeUpdate()

D.executeBatch()

正确答案是D