用一条修改语句即可:update t_content set f_body=rawtohex(f_check) where f_type in (0,4)
此处须用rawtohex()函数将f_check转成16进制,不然会报ORA-01465: invalid hex number(ORA-01465:无效的十六进制数字)的错误.
备注:f_body为blob型字段,f_check为varchar2型
这时在页面取 f_body时直接用getString("f_body")即可.  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-27
  • 2022-12-23
  • 2022-01-03
  • 2022-02-11
  • 2022-12-23
  • 2022-01-08
  • 2021-06-19
相关资源
相似解决方案