Hi,
I understand that you are finding difficult to create the table with the AUTO_INCREMENT constraint.
Recommend you to try below.
CREATE TABLE Auto
(
ID int NOT NULL AUTO_INCREMENT,
Name varchar(10) NOT NULL,
MAT int,
PHY int,
TOT int,
PRIMARY KEY (ID)
)
Please find the general syntax
CREATE TABLE Persons
(
ID int NOT NULL AUTO_INCREMENT,
LastName varchar(255) NOT NULL,
FirstName varchar(255),
Address varchar(255),
City varchar(255),
PRIMARY KEY (ID)
)
Hope this helps.
Regards,
Shirisha Paderu.