簡體   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