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 > DB2 > how to read values in field clob.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-02-12, 11:18
georgipa georgipa is online now
Registered User
 
Join Date: Dec 2002
Location: Madrid - Spain
Posts: 283
how to read values in field clob.

Hi colleagues,
Somebody can say me how to read a values in a table with data type clob?
Thank you for advanced.
Reply With Quote
  #2 (permalink)  
Old 02-02-12, 11:39
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Code:
select myclob from mytable
Reply With Quote
  #3 (permalink)  
Old 02-02-12, 16:13
georgipa georgipa is online now
Registered User
 
Join Date: Dec 2002
Location: Madrid - Spain
Posts: 283
excuse me before i do not explain me fine, i have the followind table.
create table xxxxx
( aaa int,
bbb char(20),
ccc varchar(200),
ddd clob(5000))

I need read the values in field ddd. ¿ How to do this operation?

Thank you for you help.
Reply With Quote
  #4 (permalink)  
Old 02-02-12, 16:25
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Code:
select ddd from xxxxx
Reply With Quote
  #5 (permalink)  
Old 02-02-12, 17:45
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Let me ask a different question: why do you believe that a CLOB is different from a VARCHAR? From an application's point of view, both are strings of characters and you deal with them in the same way.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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