当前位置:网站首页>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;
边栏推荐
猜你喜欢
CCVR基于分类器校准缓解异构联邦学习
使用稀疏 4D 卷积对 3D LiDAR 数据中的运动对象进行后退分割(IROS 2022)
Tanabata romantic date without overtime, RPA robot helps you get the job done
There is only one switch, how to realize the nqa of master-slave automatic switching
ECCV 2022 Oral Video Instance Segmentation New SOTA: SeqFormer & IDOL and CVPR 2022 Video Instance Segmentation Competition Champion Scheme...
Xcode10的打包方式distribute app和启动项目报错以及Xcode 打包本地ipa包安装到手机上
MySQL内部函数介绍
Creo 9.0 基准特征:基准轴
19.服务器端会话技术Session
C语言的高级用法
随机推荐
无题十一
2022-08-01 Review the basic binary tree and operations
What is CRM Decision Analysis Management?
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
What is the function of the regular expression replaceAll() method?
eKuiper Newsletter 2022-07|v1.6.0:Flow 编排 + 更好用的 SQL,轻松表达业务逻辑
my journal link
施一公:科学需要想象,想象来自阅读
express hot-reload
无题九
Qiu Jun, CEO of Eggplant Technology: Focus on users and make products that users really need
Going to book tickets tomorrow, ready to go home~~
sql server中 两表查询 平均数 分组
七夕浪漫约会不加班,RPA机器人帮你搞定工作
Seata source code analysis: initialization process of TM RM client
After Keil upgrades to AC6, what changes?
matcher中find,matches,lookingAt匹配字符串的不同之处说明
欧盟 | 地平线 2020 ENSEMBLE:D2.13 SOTIF Safety Concept(下)
轩辕实验室丨欧盟EVITA项目预研 第一章(四)
韦东山 数码相框 项目学习(六)tslib的移植