美文网首页
oracle查看blob字段

oracle查看blob字段

作者: 归去来ming | 来源:发表于2019-09-29 07:38 被阅读0次

使用函数 :

Utl_Raw.Cast_To_Varchar2()

例如:

select Utl_Raw.Cast_To_Varchar2(t.content) from tb_message t

如果报错:

需要修改sql为:

select utl_raw.cast_to_varchar2(dbms_lob.substr(t.content,2000,1))

from tb_message t

相关文章

网友评论

      本文标题:oracle查看blob字段

      本文链接:https://www.haomeiwen.com/subject/eezlyctx.html