Skip to content

SMALLINT

CREATE TABLE Employees (
ID SMALLINT,
NAME TEXT
);
INSERT INTO Employees (ID, NAME) VALUES (1, 'John Doe');

Query OK, 0 rows affected (0.01 sec)

The code creates a table Employees with two columns: ID and NAME. The ID field is a SMALLINT type, which can hold a value between -32768 and 32767. A new row is inserted into the table with ID as 1 and name as ‘John Doe’. The output indicates the query was executed successfully without affecting any previous rows.