繁体   English   中英

用于表创建的MySQL错误1064

[英]MySQL Error 1064 for Table Creation

我收到此错误:查询错误(1064):'utf8_unicode_ci NOT NULL附近的语法错误, Vendor文本整理utf8_unicode_ci NOT NULL,'在第6行

我试过删除第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 ;

第6行:

`RSSI` varchar(3) utf8_unicode_ci NOT NULL,

应该...

`RSSI` varchar(3) COLLATE utf8_unicode_ci NOT NULL,

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM