Skip to content

INT

CREATE TABLE Employees (
EmployeeID INT,
FirstName VARCHAR(255),
LastName VARCHAR(255)
);
INSERT INTO Employees (EmployeeID, FirstName, LastName)
VALUES (1, 'John', 'Doe');
SELECT * FROM Employees;
+------------+-----------+----------+
| EmployeeID | FirstName | LastName |
+------------+-----------+----------+
| 1 | John | Doe |
+------------+-----------+----------+

In the example above, an Employees table is created with the EmployeeID column of INT data type, and the FirstName and LastName columns of VARCHAR data type. One new record is inserted into the Employees table where the EmployeeID is 1, the FirstName is John and the LastName is Doe. The * in the SELECT statement indicates that all rows of the Employees table are displayed in the output.