Skip to content

TINYINT

CREATE TABLE ExampleTable (
Column1 TINYINT
);
INSERT INTO ExampleTable (Column1)
VALUES (5), (10), (15);
SELECT * FROM ExampleTable;
Column1
5
10
15

The TINYINT type is used in the creation of the ExampleTable, specifically for Column1. The INSERT INTO command is then used to populate Column1 with values 5, 10, and 15. The SELECT * FROM ExampleTable; command then retrieves all information from ExampleTable, displaying the inputted TINYINT values in Column1. The demonstrated records show that TINYINT can store small integer values.