Skip to content

INT1

CREATE TABLE Employees (
ID INT1,
Name VARCHAR(30)
);
INSERT INTO Employees (ID, Name)
VALUES (1, 'John Doe');
SELECT * FROM Employees;
+----+----------+
| ID | Name |
+----+----------+
| 1 | John Doe |
+----+----------+

In the above example, INT1 is used as a data type to limit the column ID. The INT1 data type in MySQL represents a very small integer that can store numbers from -128 to 127.