mysql - phpmyadmin error closing bracket was expected. (near ")" -
i trying import sql database in phpmyadmin, i'm getting error: a closing bracket expected. (near ")" @ position 194)
sql query:
create table if not exists `wll_product` ( `product_id` int(5) not null auto_increment, `product_name` varchar(60) not null, `product_type` tinyint(1) unsigned not null default '0'comment )
i'm new mysql, please me out, thanks.
you need add comment after comment keyword (or leave comment out). need make product_id key if want use auto_increment on it.
create table `wll_product` ( `product_id` int(5) not null auto_increment, `product_name` varchar(60) not null, `product_type` tinyint(1) unsigned not null default '0' comment 'a comment', key (`product_id`) ) engine=innodb default charset=latin1
edit: scaisedge mentioned, key enough, not pk said before.
Comments
Post a Comment