Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

How to get text from a field which datatype is BLOB

This is a discussion on How to get text from a field which datatype is BLOB within the Oracle forums, part of the Databases category; One of the fields is defined as clob data type. How can i get some text out of it. Example, in table "test" contains two fields "a", "b". "a" - ...

Go Back   Geeks Talk > Databases > Oracle
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

Oracle Oracle 9i & Oracle 10g Knowledge Base Learn and Share Oracle Technology related articles, white papers, tutorials / study materials, example codes, FAQ's, Tips and Tricks.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-29-2008
Expert Member
 
Join Date: Jun 2008
Posts: 209
Thanks: 6
Thanked 12 Times in 11 Posts
learqtptesting is on a distinguished road
How to get text from a field which datatype is BLOB

One of the fields is defined as clob data type. How can i get some text out of it. Example, in table "test" contains two fields "a", "b". "a" - alphanumeric -> "this is a test" "b" - clob -> "this is a test for tough question" i have below sqls. When run get error. Select body from test or select substr(a, instr(a, 'this ')+9, instr(a, 'tough')) as id from test
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-29-2008
Expert Member
 
Join Date: Jun 2008
Posts: 209
Thanks: 6
Thanked 12 Times in 11 Posts
learqtptesting is on a distinguished road
Re: How to get text from a field which datatype is BLOB

One of the fields is defined as clob data type. How can i get some text out of it. Example,

in table "test" contains two fields "a", "b".

"a" - alphanumeric -> "this is a test"
"b" - clob -> "this is a test for tough question"

i have below sqls. When run get error.

Select body
from test

or
select substr(a, instr(a, 'this ')+9, instr(a, 'tough')) as id
from test
Reply With Quote
  #3 (permalink)  
Old 09-05-2008
Junior Member
 
Join Date: Sep 2008
Location: India, Pune
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
anandb is on a distinguished road
Re: How to get text from a field which datatype is BLOB

Pls post the exact error code that you received
Reply With Quote
Reply

  Geeks Talk > Databases > Oracle

Thread Tools
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 On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Exforsys.com Swing Extreme Testing - Getting the Text of a Text Field admin Web Design 0 07-11-2008 12:40 AM
NCHAR datatype krishnaindia2007 Oracle 2 11-30-2007 04:36 AM
Datatype for Updated_time rameshpossible Data Warehousing 2 10-09-2007 02:57 AM
Create an index on table containg BLOB type vidya_kr Oracle 0 04-24-2007 02:33 AM
Field, single field and multivalue field JobHelper Seibel 1 01-10-2007 12:54 PM


All times are GMT -4. The time now is 04:48 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved