当前位置:网站首页>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;
边栏推荐
- seata源码解析:事务状态及全局锁的存储
- matcher中find,matches,lookingAt匹配字符串的不同之处说明
- IDEA执行Test操作导致数据插入时出现了重复数据
- Assembly language (8) x86 inline assembly
- 上海控安技术成果入选市经信委《2021年上海市网络安全产业创新攻关成果目录》
- PAT乙级-B1020 月饼(25)
- EU | Horizon 2020 ENSEMBLE: D2.13 SOTIF Safety Concept (Part 2)
- seata源码解析:TM RM 客户端的初始化过程
- 【Excel实战】--图表联动demo_001
- 无题一
猜你喜欢
只有一台交换机,如何实现主从自动切换之nqa
Keil升级到AC6后,到底有哪些变化?
Weekly Report 2022-8-4
dotnet OpenXML parsing PPT charts Getting started with area charts
js graphics operation one (compatible with pc, mobile terminal to achieve draggable attribute drag and drop effect)
交换机端口的三种类型详解与hybrid端口实验
【LeetCode】623. Add a row to the binary tree
Seata source code analysis: initialization process of TM RM client
上海控安技术成果入选市经信委《2021年上海市网络安全产业创新攻关成果目录》
Tanabata romantic date without overtime, RPA robot helps you get the job done
随机推荐
微服务 技术栈
matcher中find,matches,lookingAt匹配字符串的不同之处说明
2022-08-01 Review the basic binary tree and operations
开源一夏|OpenHarmony如何查询设备类型(eTS)
Oracle temporary table space role
干货!生成模型的评价与诊断
openpyxl to manipulate Excel files
What is the function of the regular expression replaceAll() method?
PAT Level B - B1021 Single Digit Statistics (15)
无题九
【ASM】字节码操作 方法的初始化 Frame
偏向锁/轻量锁/重级锁锁锁更健康,上锁解锁到底是怎么完成实现的
dotnet OpenXML parsing PPT charts Getting started with area charts
Excuse me if you want to write data in mysql, with flink - connector - JDBC directly is ok, but I'm in the f
Imitation SBUS fixed with serial data conversion
无题八
leetcode 剑指 Offer 10- I. 斐波那契数列
MQTT X Newsletter 2022-07 | 自动更新、MQTT X CLI 支持 MQTT 5.0、新增 conn 命令…
阿里云存储的数据库是怎么自动加快加载速度的呢www.cxsdkt.cn怎么设置案例?
21 Days of Deep Learning - Convolutional Neural Networks (CNN): Clothing Image Classification (Day 3)