Skip to content

LONG

CREATE TABLE Example (
ID NUMBER,
LongColumn LONG
);
INSERT INTO Example (ID, LongColumn) VALUES (1, 'Long text data type example.');
SELECT * FROM Example;
| ID | LongColumn |
| --- | ---------------------------- |
| 1 | Long text data type example |

In the above example, a table ‘Example’ is created with ID as NUMBER and LongColumn as LONG. It then inserts a row with the ID as 1, and LongColumn as ‘Long text data type example.’. Lastly, it fetches the data from the table. The returned result is the data where ID is 1, and LongColumn is ‘Long text data type example.’.