解决MySQL错误“ TYPE = MyISAM”?
要解决该错误,您只需将TYPE替换为ENGINE。设置引擎的语法如下-
ENGINE = MyISAM;
使用TYPE时,会发生MySQL错误。让我们在创建表时看到相同的场景-
mysql> create table Customers −> ( −> CustomerId int, −> CustomerName varchar(200) −> )TYPE = MyISAM;
错误如下-
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 'TYPE = MyISAM' at line 5
要解决以上错误,请用ENGINE替换TYPE,如下所示-
mysql> create table Customers −> ( −> CustomerId int, −> CustomerName varchar(200) −> )ENGINE = MyISAM;
MySQL中的“ENGINE=MyISAM”已成功更新。
热门推荐
10 圣诞祝福语简短小学
11 祖国七十华诞简短祝福语
12 老师送的祝福语简短
13 生日祝福语大全女生简短
14 祝女性生日祝福语简短
15 牛年女神节祝福语简短
16 情人表白祝福语简短大气
17 老公开业祝福语简短
18 官宣新年祝福语简短