当前位置:网站首页>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;
边栏推荐
- Voice conversion相关语音数据集综合汇总
- Redis源码解析:Redis Cluster
- express hot-reload
- 无题十
- ECCV 2022 Oral Video Instance Segmentation New SOTA: SeqFormer & IDOL and CVPR 2022 Video Instance Segmentation Competition Champion Scheme...
- XCODE12 在使用模拟器(SIMULATOR)时编译错误的解决方法
- seata源码解析:事务状态及全局锁的存储
- Does flink cdc support synchronization from oracle dg library?
- 无题三
- 欧盟 | 地平线 2020 ENSEMBLE:D2.13 SOTIF Safety Concept(上)
猜你喜欢
Hundred lines of code launch red hearts, why programmers lose their girlfriends!
express hot-reload
How to realize the short press and long press detection of the button?
上海控安技术成果入选市经信委《2021年上海市网络安全产业创新攻关成果目录》
ECCV 2022 Oral Video Instance Segmentation New SOTA: SeqFormer & IDOL and CVPR 2022 Video Instance Segmentation Competition Champion Scheme...
seata源码解析:事务状态及全局锁的存储
egg框架使用(二)
There is only one switch, how to realize the nqa of master-slave automatic switching
Science bosses say | Hong Kong rhubarb KaiBin teacher take you unlock the relationship between the matrix and 6 g
js 图形操作一(兼容pc、移动端实现 draggable属性 拖放效果)
随机推荐
微服务 技术栈
C语言的高级用法
Neuron Newsletter 2022-07|新增非 A11 驱动、即将支持 OPC DA
在colab里怎样读取google drive数据
只有一台交换机,如何实现主从自动切换之nqa
无题十二
Redis源码解析:Redis Cluster
正则表达式replaceFirst()方法具有什么功能呢?
无题十
Happens-before rules for threads
ffmpeg drawtext add text watermark
What is CRM Decision Analysis Management?
express hot-reload
js graphics operation one (compatible with pc, mobile terminal to achieve draggable attribute drag and drop effect)
无题三
leetcode refers to Offer 10- II. Frog jumping steps
CPU的亲缘性affinity
Xcode 12 ld: symbol(s) not found for architecture armv64
EU | Horizon 2020 ENSEMBLE: D2.13 SOTIF Safety Concept (Part 2)
C语言-数组