【发布时间】:2012-04-24 13:43:56
【问题描述】:
它告诉你从this教程复制并粘贴到phpMyAdmin的SQL页面中的SQL文本给了我错误:
#1064 - 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 6
这是脚本:
CREATE TABLE `scores` (
`id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
`name` VARCHAR(15) NOT NULL DEFAULT 'anonymous',
`score` INT(10) UNSIGNED NOT NULL DEFAULT '0'
)
TYPE=MyISAM;
我在这里做错了什么?
【问题讨论】:
-
没什么。那应该行得通。您的 IDE 可能正在运行。您是否尝试过其他 MySQL 客户端?
-
也许可以尝试用
ENGINE替换TYPE,或者省略整行。