character large object
and char large object
clob(1)
k
, m
and g
char large object
The character large object
type is, like all large object types, limited to fewer operations than their other character string relatives. They are, for example, disallowed in primary keys and foreign key constraints as only support the equality (=
) comparisons. “Applications would typically not transfer entire LOB values to and from the database (after initial storage, that is), but would manipulate LOB values through a special client-side type called a LOB locator.”
The optional length limit can use k
ilo, m
ega, g
iga, t
era and p
eta factors (powers of two).
The types character large object
, char large object
, clob
, national character large object
, nchar large object
and nclob
are defined in ISO/IEC 9075-2:2023 as part of the optional feature T046, “CLOB data type”. They first appeared in 1999.
You can’t catch up on 20 years of SQL evolution in one day. Subscribe the newsletter via E-Mail, Bluesky or RSS to gradually catch up and to keep modern-sql.com on your radar.
The essence of SQL tuning in 200 pages
Buy now!
(paperback and/or PDF)
Paperback also available at Amazon.com.
Markus offers SQL training and consulting for developers working at companies of all sizes.
Learn more »