当前位置:网站首页>mysql索引
mysql索引
2022-08-05 09:34:00 【51CTO】
1 索引的创建
1.1 普通索引


1.2 .唯一索引
1. 3 .主键索引
2 索引删除
删除唯一索引
mysql>alter table user1 drop index index_unique;
删除主键索引
第一种方法:
mysql> alter table user1 drop index primary key;
第二种方法:
mysql> drop index index_name on users;
3 复合索引
4 索引查看
第一种方法:
mysql> show create table users\G;
第二种方法:
mysql> show index from users \G;
边栏推荐
- js graphics operation one (compatible with pc, mobile terminal to achieve draggable attribute drag and drop effect)
- The Seven Weapons of Programmers
- Microservice Technology Stack
- 韦东山 数码相框 项目学习(六)tslib的移植
- 在colab里怎样读取google drive数据
- 施一公:科学需要想象,想象来自阅读
- leetcode: 529. 扫雷游戏
- IO流篇 -- 基于io流实现文件夹拷贝(拷贝子文件夹及子文件夹内文件)满满的干货
- PAT Class B-B1019 Digital Black Hole (20)
- 并发之CAS
猜你喜欢

Dry goods!Generative Model Evaluation and Diagnosis

Which big guy has the 11G GI and ojvm patches in April or January 2020, please help?

如何实现按键的短按、长按检测?

只有一台交换机,如何实现主从自动切换之nqa

链表中的数字相加----链表专题

Why do I recommend using smart async?

shell脚本实例

leetcode: 529. Minesweeper Game

eKuiper Newsletter 2022-07|v1.6.0:Flow 编排 + 更好用的 SQL,轻松表达业务逻辑

交换机端口的三种类型详解与hybrid端口实验
随机推荐
请问大佬们 ,使用 Flink SQL CDC 是不是做不到两个数据库的实时同步啊
为什么sys_class 里显示的很多表的 RELTABLESPACE 值为 0 ?
What is CRM Decision Analysis Management?
leetcode 剑指 Offer 10- II. 青蛙跳台阶问题
自定义过滤器和拦截器实现ThreadLocal线程封闭
无题十四
2022/8/4 考试总结
我的杂记链接
使用稀疏 4D 卷积对 3D LiDAR 数据中的运动对象进行后退分割(IROS 2022)
eKuiper Newsletter 2022-07|v1.6.0:Flow 编排 + 更好用的 SQL,轻松表达业务逻辑
What is the function of the regular expression replaceAll() method?
开源一夏|OpenHarmony如何查询设备类型(eTS)
微服务 技术栈
Concurrent CAS
Excuse me if you want to write data in mysql, with flink - connector - JDBC directly is ok, but I'm in the f
What is the function of the regular expression replaceFirst() method?
Voice conversion相关语音数据集综合汇总
Why do I recommend using smart async?
这样写有问题吗?怎么在sql-client 是可以做到数据的同步的
周报2022-8-4