1、String类转换Clob类型

private Clob clobStr;

private String Str="测试值";

clobStr = Hibernate.createClob(obj.toJSONString());

2、Clob类型转换String类型

private Clob clobStr;

private String Str;

Str = clobStr.getSubString(1, (int) clobStr.length());

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2021-07-23
  • 2022-12-23
猜你喜欢
  • 2021-08-26
  • 2022-12-23
  • 2022-02-16
  • 2022-12-23
  • 2022-12-23
  • 2021-07-23
相关资源
相似解决方案