当前位置:网站首页>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;
边栏推荐
- Excuse me, guys, is it impossible to synchronize two databases in real time using Flink SQL CDC?
- What is the function of the regular expression replaceFirst() method?
- Imitation SBUS fixed with serial data conversion
- 无题五
- matcher中find,matches,lookingAt匹配字符串的不同之处说明
- 21 Days of Deep Learning - Convolutional Neural Networks (CNN): Weather Recognition (Day 5)
- my journal link
- Analysis and practice of antjian webshell dynamic encrypted connection
- 无题十
- 自定义过滤器和拦截器实现ThreadLocal线程封闭
猜你喜欢

使用稀疏 4D 卷积对 3D LiDAR 数据中的运动对象进行后退分割(IROS 2022)

express hot-reload

Tanabata romantic date without overtime, RPA robot helps you get the job done

欧盟 | 地平线 2020 ENSEMBLE:D2.13 SOTIF Safety Concept(上)

基于 Kubernetes 的微服务项目整体设计与实现

Assembly language (8) x86 inline assembly

How to realize the short press and long press detection of the button?

19.服务器端会话技术Session

CCVR基于分类器校准缓解异构联邦学习

周报2022-8-4
随机推荐
C语言-数组
Creo 9.0 基准特征:基准平面
21 Days of Deep Learning - Convolutional Neural Networks (CNN): Clothing Image Classification (Day 3)
【zeno】为zeno增加子模块/新节点的最小化的例子
Bias lock/light lock/heavy lock lock is healthier. How is locking and unlocking accomplished?
茄子科技CEO仇俊:以用户为中心,做用户真正需要的产品
After Keil upgrades to AC6, what changes?
egg框架使用(一)
正则表达式replaceFirst()方法具有什么功能呢?
正则表达式replaceAll()方法具有什么功能呢?
【Excel实战】--图表联动demo_001
matcher中find,matches,lookingAt匹配字符串的不同之处说明
IDEA执行Test操作导致数据插入时出现了重复数据
Marketing Suggestions | You have an August marketing calendar to check! Suggest a collection!
周报2022-8-4
What is CRM Decision Analysis Management?
无题十四
express hot-reload
hcip BGP 增强实验
无题一