•
A basic CREATE TABLE statement only requires the table name, the column name and the column datatype for each column present in the table.
Note
•
You cannot create a table with no columns.
•
Line breaks in a statement are allowed. As long as the “;” and parenthesis are in the correct positions within your statement.
•
The VARCHAR datatype is used for short string data.
•
The INT datatype is used for integers.
Example:
•
In this example we create a table called Employees.
•
The Employees table consists of 4 columns
•
EmployeeName, datatype VARCHAR
•
EmployeeLastName, datatype VARCHAR
•
EmployeeAge, datatype INT
•
EmployeeDepartment, datatype VARCHAR