25.【批处理及PreparedStatement对象】

批处理 当向数据库发送多条不一样的SQL语句时,能够使用Statement实现批处理。Statement经过addBatch()方法添加一条SQL语句,经过executeBatch()方法批量执行SQL语句。mysql public static void main(String[] args) { Connection conn=null; Statement stmt=null; tr
相关文章
相关标签/搜索