我有一個mysql數據庫,我從我的在線服務器上下載並試圖導入我的本地mysql,但它不工作,顯示此語法錯誤。我無法找到在此查詢MySQL錯誤使用BTREE
任何錯誤,這是錯誤:
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 'USING BTREE, KEY
idx_p_id
(p_id
) USING BTREE, KEY ' at line 27
,這是我的查詢:
PRIMARY KEY (`a_id`),
UNIQUE KEY `idx_a_id` (`a_id`) USING BTREE,
KEY `idx_p_id` (`p_id`) USING BTREE,
KEY `idx_m_id` (`m_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
只要刪除'USING BTREE',除非您在此字段上使用LIKE語句,它將恢復爲默認散列索引 – 2015-06-26 11:48:05