?
Solved

BLOB Query in Oracle database

Posted on 2010-01-11
3
Medium Priority
?
452 Views
Last Modified: 2013-12-18
Hey;

I have a Oracle table with a BLOB field. It is a XML format.

I tried to find any record with <Answer> is null which means they don't provide answer?

<ResourceInfoList>
    <ResourceInfo>
    </ResourceInfo>
  </ResourceInfoList>
  <Answers>
    <Answer id='1''></Answer>
    <Answer id='2' ></Answer>
 </Answers>

Can i do it via query? Or i need to write Java program to read it?

Thanks
 
0
Comment
Question by:idmdeveloper
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 15

Accepted Solution

by:
Shaju Kumbalath earned 2000 total points
ID: 26289955
First  convert BLOB to CLOB using DBMS_LOB.CONVERTTOCLOB, then used EXTRACT function of XMLTYPE to get the values from XML file.
0
 

Author Comment

by:idmdeveloper
ID: 26478336
Thanks for your help
0

Featured Post

Ransomware Attacks Keeping You Up at Night?

Will your organization be ransomware's next victim?  The good news is that these attacks are predicable and therefore preventable. Learn more about how you can  stop a ransomware attacks before encryption takes place with our Ransomware Prevention Kit!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Security measures require Windows be logged in using Standard User login (not Administrator).  Yet, sometimes an application has to be run “As Administrator” from a Standard User login.  This paper describes how to create a shortcut icon to launch a…
In this post we will learn different types of Android Layout and some basics of an Android App.
The viewer will learn how to implement Singleton Design Pattern in Java.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses
Course of the Month9 days, 1 hour left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question