Can someone please tell what is wrong with below SQL code?
CREATE TABLE student (
student_id INT PRIMARY KEY,
first_name VARCHAR(20),
major VARCHAR(20),
);
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It only takes a minute to sign up.
Sign up to join this communityYou need to remove the comma after the last column declaration.
CREATE TABLE student
(
student_id INT PRIMARY KEY,
first_name VARCHAR(20),
major VARCHAR(20)
);