I keep getting this error please help me with this

  Kiến thức lập trình

Im trying to create a table but it says check manual for the right syntax to use near’)’

The command i used:
create table sub(
Id int,
Menu_name varchar
);
I even tried mysql older version but still got same error
Actually i wanted to do this command:

Create table sub(
Id int(11) not null auto_increment,
Menu_name varchar(8) not null,
Primary key(id)
);The command im trying to do
None of them worked i just started sql and have no idea all tutorial looked the same i see no problem with command

New contributor

Jimjima is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT