If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > Retriving BLOB file In ref cursor using join query

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-01-09, 17:21
doopatinagaraju doopatinagaraju is offline
Registered User
 
Join Date: Mar 2009
Posts: 2
Retriving BLOB file In ref cursor using join query

HI,

I am using ref cursor to return resultset to java application from procedure as SYS_ref cursor as out parameter, in cursor i want blob file to java appliction, actually i wrote query for cursor is

select a.col1,a.col2,b.col1,c.blobcol from
tableA a,tableB b, TableC c
where a.id=b.id and b.id=c.id.

i am getting the error that---- inconsitent datatypes expected-got BLOB,
if write query for BLOB file individually its selecting fine like
select BLOBCol into Timp_blob from documents where id=12.
if am writing cursor query(join query) i am getting above error, i researched in google, in one article i found that in join querys you cannot retrive blob files, actually i want to fetch record of customer and his attached file in cursor at atime, that's the reason i used join query to get blob file. any help please--------------------- urgent.
Reply With Quote
  #2 (permalink)  
Old 07-01-09, 19:42
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 6,407
No Operating System name or version
No Oracle version number (from v$version).
No error message (not your interpretation of the actual full and complete message).
No DDL.
No DML.
No expected results.
No help is possible at this time.
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
For most folks, they don't know, what they don't know.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On