Skip to content

INT4

CREATE TABLE test (
id INT4
);
INSERT INTO test (id) VALUES (1234);
SELECT * FROM test;
id
-----
1234

This demonstrates the creation of a table named ‘test’ with one column ‘id’ of INT4 type, insert a value into it and then retrieve that value. INT4 is a 4-byte integer data type in PostgreSQL.