MySQL基础之索引
2023-09-19 18:08:25
这段时间看了好多东西却没有总结,今天在这里写一写
关于索引
索引是一种提高查询效率的方法,它是B+树的结构,从根到中间节点在到叶子节点,无需遍历全部就可以查到所需的东西
关于索引的创建
一般有俩种方式
在创建table的时候添加索引
create table test( id int not null, index i_sss(id);
在已有的table中添加索引
create index i_sss(id) on test;
如何查看索引
show index from test;
如何删除索引
drop index i_sss on test;
之后会逐步更新,测试markdown
最新文章
- .NET Core全新路线图
- iis 7.0 asp.net发布问题
- Composer 学习笔记
- Activity生命周期(深入理解)
- canvas基本用法
- hiho_1041 国庆出游
- hdu 2612 Find a way
- Spring REST实践之客户端和测试
- log4.net
- 构建一个基于 Spring 的 RESTful Web Service
- Angular2.js——多个组件
- namenode和datanode 的namespaceID导致的问题
- 【SpringMVC】【EasyUI】关于使用EasyUIForm上传文件,返回JsonIE提示下载文件的解决办法!
- TensorFlow MNIST(手写识别 softmax)实例运行
- 使用koa2+es6/7打造高质量Restful API
- Linq中Sum和Group的使用
- python----常用模块(random,string,time&;datetime,os,sys,xpinyin(拼音))
- MySql md5加密 sqlserver md5加密 C# md5加密 java md5加密
- 《剑指offer》第五十三题(数组中数值和下标相等的元素)
- metasploit framework(十一):获取漏洞信息