String、Clob类型互相转换(oracle数据库)
1.StringToClobClob clob = new SerialClob(string.toCharArray());Clob clob = Hibernate.createClob(string);2.ClobToString// 我看clob应该直接由toString()/setString()方法// 我用的是流public String ClobToString(Clob clob){ String str = ""; Reader reader = clob.getCh
原创
2021-09-25 19:04:17 ·
3323 阅读 ·
0 评论