CREATE TABLE [IF NOT EXISTS] table_name (
column1 datatype(length) column_constraint,
column2 datatype(length) column_constraint,
...
table_constraints
);
CREATE TABLE student(
student_id SERIAL PRIMARY KEY,
name VARCHAR(20),
major VARCHAR(20)
);
# \d student
DROP TABLE student;
ALTER TABLE student ADD gpa numeric(3,2)
ALTER TABLE student DROP gpa
CREATE TABLE student(
student_id SERIAL,
name VARCHAR(20),
major VARCHAR(20),
PRIMARY KEY(student_id)
);