当前位置:网站首页>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;
边栏推荐
猜你喜欢
随机推荐
Example of Noise Calculation for Amplifier OPA855
IO流篇 -- 基于io流实现文件夹拷贝(拷贝子文件夹及子文件夹内文件)满满的干货
leetcode: 529. 扫雷游戏
在colab里怎样读取google drive数据
无题七
周报2022-8-4
无题六
The Seven Weapons of Programmers
开源一夏|OpenHarmony如何查询设备类型(eTS)
There is only one switch, how to realize the nqa of master-slave automatic switching
2.4G无线收发模块的应用
ECCV 2022 Oral Video Instance Segmentation New SOTA: SeqFormer & IDOL and CVPR 2022 Video Instance Segmentation Competition Champion Scheme...
线程之Happens-before规则
无题五
Creo 9.0 基准特征:基准轴
【zeno】为zeno增加子模块/新节点的最小化的例子
Concurrent CAS
Oracle临时表空间作用
【Excel实战】--图表联动demo_001
Undefined symbols for architecture arm64解决方案









