环境:oracle使用PreparedStatement的executeBatch方法,如果DML操作成功,返回值[-2,-2,...]an array of update counts containing one element for each command in the batch. int java.sql.Statement.SUCCESS_NO_INFO = -2 [0xfffffffe] The constant indicating that a batch statemen
大家都知道Statement.PrepareStatement 和CallableStatement 对象,其实它们是interface,为什么JDBC2.0中要提供这三个对象呢?对于Statement就是为了实现简单的SQL语句,但是PrepareStatement和CallableStatement是为了: 1) Prevent SQL inject attack 2) Catch of DB overflow 3) Readable and maintained of code 4) Ef