-
String sql2 = "select name from testcoci
where id=88 for update";
PreparedStatement stmt = con.prepareStatement(sql2);
ResultSet rs = stmt.executeQuery();
-
- if (rs.next()) {
- BLOB blob = (BLOB) rs.getBlob(1);
- String content = new String(blob.getBytes((long)1, (int)blob.length()));
- }
java读取数据库blob型
最新推荐文章于 2021-03-01 15:17:21 发布