有几个索引树? 画出这个索引树具体的存储结构
问题描述:
问题遇到的现象和发生背景
问题相关代码,请勿粘贴截图
CREATE TABLE user
(
id
int(11) NOT NULL AUTO_INCREMENT,
username
varchar(50) DEFAULT NULL,
password
varchar(100) DEFAULT NULL,
age
int(11) DEFAULT NULL,
PRIMARY KEY (id
),
KEY password_index
(password
) USING BTREE,
KEY username_index
(username
) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=10063003 DEFAULT CHARSET=utf8;
运行结果及报错内容
我的解答思路和尝试过的方法
我想要达到的结果
答
3个索引树分别是 id、password、username
B+TREE数据结构这个网站有 https://www.cs.usfca.edu/~galles/visualization/Algorithms.html