摘要: 把结果集封装为List// 通过结果集元数据封装List结果集 public static List> read(String sql) { Connection conn = null; PreparedStatement ps = null; Re... 阅读全文
posted @ 2015-11-13 10:38 火光闪耀 阅读(399) 评论(0) 推荐(0) 编辑
摘要: 1. btye[]转blob byte[] bs = ...Blob blob = conn.createBlob();blob.setBytes(1, bs);ps.setBlob(2, blob);2. blob转byte[]Blob b = resultSet.getBlob(metaDat... 阅读全文
posted @ 2015-11-13 10:31 火光闪耀 阅读(10968) 评论(0) 推荐(0) 编辑