Python--day47--mysql索引类型介绍

普通索引表中的数据结构示例:

hash哈希索引表示例:

btree索引表示例:

1,查询表中有多少条数据:select count(1) from userinfo3;

2,查看表中的数据格式和数据类型:desc  userinfo3;

3,主键是一种特殊的索引

4,创建索引:create index 索引名 on 表名(email)

5,删除索引:drop index 索引名 on 表名:

猜你喜欢

转载自www.cnblogs.com/xudj/p/10390586.html