当前位置:网站首页>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;
边栏推荐
- egg框架使用(一)
- Microservice Technology Stack
- Redis源码解析:Redis Cluster
- 仿SBUS与串口数据固定转换
- 无题八
- Which big guy has the 11G GI and ojvm patches in April or January 2020, please help?
- Imitation SBUS fixed with serial data conversion
- 请问如果想往mysql里面写数据,直接用flink-connector-jdbc就可以吧,可是我在f
- tensorflow.keras无法引入layers
- Oracle临时表空间作用
猜你喜欢

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

19.服务器端会话技术Session

自定义过滤器和拦截器实现ThreadLocal线程封闭

开源一夏|OpenHarmony如何查询设备类型(eTS)

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

Hundred lines of code launch red hearts, why programmers lose their girlfriends!

深度学习21天——卷积神经网络(CNN):天气识别(第5天)

Custom filters and interceptors implement ThreadLocal thread closure

Science bosses say | Hong Kong rhubarb KaiBin teacher take you unlock the relationship between the matrix and 6 g

汇编语言(8)x86内联汇编
随机推荐
无题一
ffmpeg drawtext 添加文本水印
The technological achievements of Shanghai Konan were selected into the "2021 Shanghai Network Security Industry Innovation Research Achievement Catalog" by the Municipal Commission of Economy and Inf
偏向锁/轻量锁/重级锁锁锁更健康,上锁解锁到底是怎么完成实现的
Hbuilder 学习使用中的一些记录
C语言的高级用法
sql server中 两表查询 平均数 分组
leetcode 剑指 Offer 10- II. 青蛙跳台阶问题
无题十三
What is the function of the regular expression replaceAll() method?
PAT乙级-B1019 数字黑洞(20)
How to realize the short press and long press detection of the button?
Oracle temporary table space role
leetcode refers to Offer 10- II. Frog jumping steps
欧盟 | 地平线 2020 ENSEMBLE:D2.13 SOTIF Safety Concept(下)
flink cdc支持从oracle dg库同步吗
无题十二
正则表达式replaceFirst()方法具有什么功能呢?
我的杂记链接
新白娘子传奇系列