PreparedStatement pstmt=null; pstmt = conn.prepareStatement(insert_sql); //获得影响的行数int i = pstmt.executeUpdate();