Professional Documents
Culture Documents
Untitled
Untitled
Example:
CREATE TABLE customer (
customer_id INT PRIMARY KEY,
name VARCHAR(50),
email VARCHAR(50)
);
This query generates a "employee" table with columns for employee ID, first and
last name, email address, hire date, job title, salary, and department ID. The
employee ID column is designated as the table's primary key, which means it
uniquely identifies each row in the table. Column data types and sizes can be
customized to meet the needs of the application.