请教preparedstatement的executeBatch()返回的数组内容
各位大虾:
sql="delete from tbl_test where mytype=?";
PreparedStatement ps= conn.prepareStatement(sql);
ps.setString(1,"abc");
ps.addBatch();
int a= ps.executeBatch();
我的delete from tbl_test where mytype='abc'应该有5条数据被删除,可为何
此处 a.length 的值确为 1
executeBatch()返回的不是实际执行语句的结果吗?
谢谢