KeeneWoo's cnblogs

"Hello World !!!"

导航

2011年3月27日

摘要: 1.PreparedStatement是预编译的,对于批量处理可以大大提高效率. 也叫JDBC存储过程2.使用 Statement 对象。在对数据库只执行一次性存取的时侯,用 Statement 对象进行处理。PreparedStatement 对象的开销比Statement大,对于一次性操作并不会带来额外的好处。3.statement每次执行sql语句,相关数据库都要执行sql语句的编译,preparedstatement是预编译得, preparedstatement支持批处理4.Code Fragment 1:String updateString = "UPDATE COFF 阅读全文

posted @ 2011-03-27 22:37 KeeneWoo 阅读(322) 评论(0) 推荐(0) 编辑