0

我收到此错误:查询中的错误 (1064):Vendor第 6 行的“utf8_unicode_ci NOT NULL, text collat​​e utf8_unicode_ci NOT NULL,”附近的语法错误

我尝试删除第 6 行,但在不同的地方遇到了同样的错误。

CREATE TABLE IF NOT EXISTS `wifiScan` (
  `ID_frame` int(11) NOT NULL auto_increment,
  `TimeStamp` timestamp NOT NULL default CURRENT_TIMESTAMP,
  `MAC` varchar(17) collate utf8_unicode_ci NOT NULL,
  `AP` text collate utf8_unicode_ci NOT NULL,
  `RSSI` varchar(3) utf8_unicode_ci NOT NULL,
  `Vendor` text collate utf8_unicode_ci NOT NULL,
  PRIMARY KEY  (`ID_frame`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
4

1 回答 1

2

第 6 行:

`RSSI` varchar(3) utf8_unicode_ci NOT NULL,

应该...

`RSSI` varchar(3) COLLATE utf8_unicode_ci NOT NULL,
于 2013-11-06T01:15:56.660 回答