Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 5th, 2004, 03:04 PM
raghu_ms raghu_ms is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 15 raghu_ms User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 2 sec
Reputation Power: 0
searching a clob field

Hi all,

I am trying to search for a string in the clob field of one my tables. Previously is used to employ the 'like' keyword for all the varchar fields and was working fine. Now when I am trying to do so with the clob field I am getting an exception like 'inconsistent datatypes'.

Can anyone, give me an example query or anything like that. Any help will be greatly appreciated.

Thank you

Reply With Quote
  #2  
Old May 20th, 2004, 08:38 AM
tonyfreeman tonyfreeman is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Milwaukee, WI, USA
Posts: 2 tonyfreeman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Same problem and need help also

I just had to port an access/coldfusion application to oracle/php. I created a clob in oracle8i for each of the memo fields in access. Now I cannot search the clob with this code:

WHERE upper(partners) like '%$search_keyword%'

.. i get the inconsistent data type error. So I changed the search to do this:

WHERE CONTAINS (partners, '%$search_keyword%') > 0

.. this time I get an interMedia Text error: DRG-10599: column is not indexed error.

Any simple help to be able to search this type of field?

Reply With Quote
  #3  
Old September 22nd, 2004, 10:55 AM
yahro yahro is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 1 yahro User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Try to use dbms_lob.instr() function - it works fine for me, it is case sensitive though and less flexible than like operator...

Reply With Quote
  #4  
Old September 24th, 2004, 12:14 PM
raghu_ms raghu_ms is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 15 raghu_ms User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 2 sec
Reputation Power: 0
Thanks a lob buddy - take care

Thanks a lot. I have been looking for this for quite some time now. take care
Quote:
Originally Posted by yahro
Try to use dbms_lob.instr() function - it works fine for me, it is case sensitive though and less flexible than like operator...

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > searching a clob field


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway