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 > Informix > subset of BLOB

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-23-06, 20:21
jinsezh jinsezh is offline
Registered User
 
Join Date: Aug 2006
Posts: 33
Question subset of BLOB

Hi there,

I have a column which is byte(32375), my understanding is it is a blob with binary data. Since it only contains large text, my question is can I get a sub string of this column?

Thanks,
Jinse
Reply With Quote
  #2 (permalink)  
Old 11-24-06, 07:55
stanislav.ondac stanislav.ondac is offline
Registered User
 
Join Date: Aug 2005
Posts: 140
BLOB columns require special
handling and so can only be handled in ESQL/C, ODBC, or 4GL programs which
means that you cannot display a BLOB in dbaccess, perform, or ace. You
also cannot include a BLOB in a where clause except as a substring
expression.

blobtable (one text)
in dbaccess:
select one[1,4] from blobtable
----------------------------------------------
one
Ahoj
-------------------------------------------
blobtable1(one byte)
in dbaccess:
select one[1,4] from blobtable1
------------------------------------------
one <BYTE value>
------------------------------------------

So it look like you can get a substring of you column whe you change it from
byte to text ( TEXT and BYTE are actually
treated the same by the engine)
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