Difference between CLOB and BLOB from DB2 and Oracle Perspective?

后端 未结 3 1757
既然无缘
既然无缘 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: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

提交回复
热议问题