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 > blob

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-27-07, 04:19
ravi30 ravi30 is offline
Registered User
 
Join Date: Dec 2007
Posts: 7
blob

CREATE DISTINCT TYPE IMAGE AS BLOB (10M)

CREATE DISTINCT TYPE AUDIO AS BLOB (1G)

CREATE TABLE PERSON
(SSN INTEGER NOT NULL,
NAME CHAR (30),
VOICE AUDIO,
PHOTO IMAGE)

In this code can u explain what the blob is about and also what 10m and 1g are!
Reply With Quote
  #2 (permalink)  
Old 12-27-07, 04:33
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
A BLOB is a binary large object that is typically used to store files that contain images, audio files, etc. The 10m (10 megabytes) and 1g (1 gigabyte) are the maximum length that has been defined for those columns. A BLOB can be defined up to 2 GB, but only a 1 GB (or smaller) BLOB can be logged (via the DB2 transaction recovery log).

A CLOB is a character large object that might hold character data such as XML or a text file.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 12-27-07, 05:10
ravi30 ravi30 is offline
Registered User
 
Join Date: Dec 2007
Posts: 7
thnx marcus that was very helpful!
by the way regarding clob if we declare as clob(x). then should x be expressed in bytes or the number of characters
Reply With Quote
  #4 (permalink)  
Old 12-27-07, 11:09
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Quote:
Originally Posted by ravi30
thnx marcus that was very helpful!
by the way regarding clob if we declare as clob(x). then should x be expressed in bytes or the number of characters
Should be expressed in bytes.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
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