-1

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),
    );
J.D.
  • 40,776
  • 12
  • 62
  • 141

1 Answers1

2

You 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)
);