MySQL总是报错,我快疯了!!大神救命啊!!在线等~~
mysql>createtableyh-><->idint<6>notnullprimarykey,->namechar<10>notnull,->professionc...
mysql> create table yh
-> <
-> id int<6> not null primary key,
-> name char<10> not null,
-> profession char<20> not null
-> >;
ERROR 1074(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 '<id int<6> not null primary key, name char<10> not null, profession char<20> no' at line 2
我在输入的时候用的是英文半角 展开
-> <
-> id int<6> not null primary key,
-> name char<10> not null,
-> profession char<20> not null
-> >;
ERROR 1074(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 '<id int<6> not null primary key, name char<10> not null, profession char<20> no' at line 2
我在输入的时候用的是英文半角 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询