sql - What am I missing? MySQL syntax error -
i having error:
#1064 - have error in sql syntax; check manual corresponds mysql server version right syntax use near ''tablename'( 'id'mediumint not null auto_increment, 'content'text not null, 'd' @ line 1 from statement:
create table 'tablename'( 'id'mediumint not null auto_increment, 'content'text not null, 'date_added' datetime not null, 'user' varchar (16) not null, primary key ('id'), unique ('id') ); engine=myisam; why?
you need backtick instead of single quote ('). backtick character:
` better yet - don't bother either:
create table tablename ( id mediumint ... important: see comments below tadman; round out answer nicely explaining backticks , pointing out syntax issue.
Comments
Post a Comment