
JDBC
文章平均质量分 77
keveoniteye
这个作者很懒,什么都没留下…
展开
-
用JDBC访问大段文本数据
用JDBC访问大段文本数据 public class ClobTest { public static void main(String[] args) throws SQLException, IOException, ClassNotFoundException { // create(); read(); } // 从数据库读取大段文本数据,并写入J...原创 2011-05-20 16:25:24 · 81 阅读 · 0 评论 -
用JDBC访问二进制类型的数据
用JDBC访问二进制类型的数据 public class BlobTest { public static void main(String[] args) throws SQLException, IOException, ClassNotFoundException { // create(); read(); } // 从数据库读取二进制类型的数据 s...原创 2011-05-20 17:09:22 · 90 阅读 · 0 评论 -
使用JDBC的批处理功能
批处理,可以大幅度提升大量增,删,改的速度 public class BatchTest { public static void main(String[] args) throws SQLException { long start = System.currentTimeMillis(); for (int i = 0; i < 100; i++) cr...原创 2011-05-21 15:46:25 · 77 阅读 · 0 评论