技术
文章平均质量分 57
NoBugNoCode
Today is ruthless and tomorrow will be much more ruthless, but the day after tomorrow will turn out to be beautiful. However, most people will die tomorrow night.
展开
-
JDBC QueryRunner(开源框架)之查询 详解
QueryRunner查询数据库& QueryRunner如何封装起来的 一、简单描述JDBC获取连接Connection后能做什么?首先 查看相关API(一).使用类和方法QueryRunner(接口的方法如下两个):update(connection,sql,object…objs) //进行增删改方法query(connection,sql,ResultSetHandler,objec原创 2016-10-17 01:23:19 · 8110 阅读 · 0 评论 -
JDBC 之插入Blob(图片)& 批处理 & 数据库事务
插入Blob字段类型(如图片) 实现批处理和 数据库事务的一致性一、插入Blob类型数据(如:图片)使用JDBC来写入Blob型数据到数据库中数据库中的Blob字段比long字段的性能要好,可以用来保存如图片之类的二进制数据。BLOB字段由两部分组成:数据(值)和指向数据的指针(定位器)。尽管值与表自身一起存储,但是一个BLOB列并不包含值,仅有它的定位指针。为了使用大对象,程序必须声明定位原创 2016-10-17 03:03:57 · 1005 阅读 · 0 评论