0

我正在使用 xampp 软件,我打开 mysql 我的管理员并粘贴该 sql 代码。这显示了一个错误,例如

#1214 - The used table type doesn't support FULLTEXT indexes

#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 7

CREATE TABLE code (
 id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
 title VARCHAR(50) NOT NULL,
 chapter TINYINT UNSIGNED NOT NULL,
 code TEXT NOT NULL,
 FULLTEXT (title,code)
) TYPE = MYISAM;
4

1 回答 1

2

试试这个:

CREATE TABLE code 
( 
  id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, 
  title VARCHAR(50) NOT NULL, 
  chapter TINYINT UNSIGNED NOT NULL, 
  code TEXT NOT NULL, 
  FULLTEXT (title,code) 
) ENGINE = MyISAM;
于 2011-12-08T14:15:47.600 回答