Skip to content

NCLOB

CREATE TABLE TestTable (
ID NUMBER,
Info NCLOB
);
INSERT INTO TestTable (ID, Info)
VALUES (1, TO_NCLOB('Example Text'));
SELECT * FROM TestTable;
ID | INFO
--------|-----------------
1 | Example Text

The above SQL script creates a table named TestTable with two columns: ID and Info. ID is of data type NUMBER whereas Info is of data type NCLOB (National Character Large OBject), which can hold a large block of text. A row of data is inserted into TestTable with ID as 1 and Info as ‘Example Text’. The SQL SELECT statement retrieves all rows from TestTable. It shows that the Info data is stored and displayed correctly as a large text object.