Search Posts

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’check (id

while creating a table i’m getting following error

create table check(
id int(9) auto_increment,
test_case varchar(20),
file_name varchar(200),
coverage int(5),
primary key(test_case,file_name));

As i’m getting following error

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 'check( id int(9) auto_increment,test_case varchar(20),file_name 
varchar(200),cov' at line 1

please let me know what to do.

Source: Stackoverflow

Leave a Reply

Your email address will not be published. Required fields are marked *