character large object
{{About||the card game|Clob (card)|the formerly proposed securities trading system|Central limit order book}}
A Character Large OBject (or CLOB) is part of the SQL:1999 standard data types. It is a collection of character data in a database management system, usually stored in a separate location that is referenced in the table itself. Oracle and IBM Db2 provide a construct explicitly named CLOB,{{Cite web|url=https://docs.oracle.com/javadb/10.6.2.1/ref/rrefclob.html|title=Oracle CLOB in JavaDB|website=docs.oracle.com|access-date=2018-08-16}}{{Cite web|url=https://www.ibm.com/support/knowledgecenter/en/SSGU8G_12.1.0/com.ibm.sqlr.doc/ids_sqr_107.htm|title=IBM Informix CLOB|website=www.ibm.com|access-date=2018-08-16}} and the majority of other database systems support some form of the concept, often labeled as text, memo or long character fields.
CLOBs usually have very high size-limits, of the order of gigabytes. The tradeoff for the capacity is usually limited access methods. In particular, some database systems{{which|date=March 2014}} limit certain SQL clauses and/or functions, such as LIKE or SUBSTRING from being used on CLOBs. Those that permit such operations may perform them very slowly.
Alternative methods of accessing the data are often provided, including means of extracting or inserting ranges of data from the CLOB.
Database systems exhibit variations in their storage patterns for CLOBs. Certain systems consistently store CLOBs as references to external data, residing outside the table. In contrast, some systems initially store small CLOBs within the table itself, but switch their storage approach when the data size surpasses a specific threshold. Additionally, certain systems offer configurable options to adapt their behavior.
Implementations
PostgreSQL 15.0: unsupported{{Cite web|url=https://www.postgresql.org/docs/current/static/unsupported-features-sql-standard.html|title=P manual, D.2. Unsupported Features}} but it can be easily defined as a synonym to the text type with: create domain CLOB as TEXT;
MariaDB 10.8: supported{{Cite web|url=https://mariadb.com/docs/reference/mdb/data-types/CLOB/|title=MariaDB manual, CLOB data type}}
MySQL 8.0: support unknown.{{Cite web|url=https://dev.mysql.com/doc/refman/8.0/en/storage-requirements.html|title=MySQL manual, 11.7 Data Type Storage Requirements}} There used{{cite web|url=https://stackoverflow.com/questions/7071662/mysql-text-vs-blob-vs-clob|title=Stackoverflov, MySQL TEXT vs BLOB vs CLOB}} to be a CLOB mentioned in the manual but the data type is no longer mentioned in later manuals.
Mimer SQL 11.0: supported.{{Cite web|url=https://docs.mimer.com/MimerSqlManual/v110/html/Manuals/mimercapi/Data_Types.html|title=Mimer SQL 11.0 Data Types}}