Oracle database: How to read a BLOB?

后端 未结 6 720
星月不相逢
星月不相逢 2021-02-07 23:37

I\'m working with an Oracle database, and I would like to read the contents of a BLOB. How do I do this?

When I do a simple select statement, it merely returns \"(BLOB)

6条回答
  •  佛祖请我去吃肉
    2021-02-08 00:25

    What client do you use? .Net, Java, Ruby, SQLPLUS, SQL DEVELOPER? Where did you write that simple select statement?

    And why do you want to read the content of the blob, a blob contains binary data so that data is unreadable. You should use a clob instead of a blob if you want to store text instead of binary content.

    I suggest that you download SQL DEVELOPER: http://www.oracle.com/technetwork/developer-tools/sql-developer/overview/index.html . With SQL DEVELOPER you can see the content.

提交回复
热议问题