0
在写一个实用程序脚本来插入图像到数据库中时,我想知道是否有一个更方便的做法。最后安排了这样的事情:Grooviest在数据库中存储BLOB的方法?
def sql = Sql.newInstance(...)
// ...
Connection conn = sql.getConnection()
PreparedStatement stmt.prepareStatment(...)
stmt.setBinary(...)
stmt.executeUpate()
必须有一个更方便的方式,有人能够启发我吗?
“groovier”是什么意思? – 2008-11-27 16:58:00