Difference between CLOB and BLOB from DB2 and Oracle Perspective?

后端 未结 3 1754
既然无缘
既然无缘 2021-01-29 22:50

I have been pretty much fascinated by these two data types. According to Oracle Docs, they are presented as follows :

BLOB : Variable-l

相关标签:
3条回答
  • 2021-01-29 23:30

    BLOB is for binary data (videos, images, documents, other)

    CLOB is for large text data (text)

    Maximum size on MySQL 2GB

    Maximum size on Oracle 128TB

    0 讨论(0)
  • 2021-01-29 23:31

    BLOB primarily intended to hold non-traditional data, such as images,videos,voice or mixed media. CLOB intended to retain character-based data.

    0 讨论(0)
  • 2021-01-29 23:35

    They can be considered as equivalent. The limits in size are the same:

    • Maximum length of CLOB (in bytes or OCTETS)) 2 147 483 647
    • Maximum length of BLOB (in bytes) 2 147 483 647

    There is also the DBCLOBs, for double byte characters.

    References:

    • LOB definition in DB2: http://pic.dhe.ibm.com/infocenter/db2luw/v10r5/topic/com.ibm.db2.luw.sql.ref.doc/doc/r0008473.html
    • SQL and XML limits: http://pic.dhe.ibm.com/infocenter/db2luw/v10r5/topic/com.ibm.db2.luw.sql.ref.doc/doc/r0001029.html
    0 讨论(0)
提交回复
热议问题