Reputation: 11
I typed this code :
When i execute the command i got the message below :
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ENGINE=InnoDB' at line 6
Could you please help to solve this issue?
Upvotes: 0
Views: 87
Reputation: 4739
Just remove , after email in the table creation
CREATE TABLE Client
(numero int unsigned primary key AUTO_INCREMENT,
nom varchar(40) NOT NULL,
prenom varchar(40) NOT NULL,
email varchar(40) NOT NULL)
ENGINE =InnoDB;
Upvotes: 2