我正在研究我的數據庫表,並出現了一些我無法解釋說:爲什麼使用mySQL在「CREATE TABLE」中出現「USING BTREE」?
CREATE TABLE `challenges` (
`ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
`KIND` enum('1','2','3') NOT NULL DEFAULT '1',
`TITLE` varchar(255) NOT NULL DEFAULT '',
`DESCRIPTION` text NOT NULL,
`DATEAT` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`OWNER_ID` int(10) unsigned NOT NULL DEFAULT '0',
`SOLVEDREPLAY_ID` int(10) unsigned DEFAULT NULL,
PRIMARY KEY (`ID`),
KEY `Index_2` (`OWNER_ID`),
KEY `Index_4` (`DATEAT`),
KEY `Index_3` (`SOLVEDREPLAY_ID`) **USING BTREE**,
KEY `Index_5` (`KIND`) **USING BTREE**,
CONSTRAINT `FK_challenges_1` FOREIGN KEY (`OWNER_ID`) REFERENCES `users` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `FK_challenges_2` FOREIGN KEY (`SOLVEDREPLAY_ID`) REFERENCES `uploads` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
Index_3和Index_5使用B樹(之間的**,我不能讓它大膽),但有趣的是別人的arent 。所有索引都是「BTREE」,我只是不明白它爲什麼強調CREATE TABLE表達式
你是怎麼創建表? –
其實我用的是MySQL查詢瀏覽器,它允許我以類似的方式創建「視覺」字段 –