当前位置:网站首页>sql添加索引
sql添加索引
2022-08-01 17:18:00 【m0_54850467】
1.普通索引 添加INDEX
ALTER TABLE table_name ADD INDEX index_name ( column )
下面演示下给user表的name字段添加一个索引
2.主键索引 添加PRIMARY KEY
ALTER TABLE table_name ADD PRIMARY KEY ( column )
3.唯一索引 添加UNIQUE
ALTER TABLE table_name ADD UNIQUE ( column )
4.全文索引 添加FULLTEXT
ALTER TABLE table_name ADD FULLTEXT ( column)
5.如何添加多列索引
ALTER TABLE table_name ADD INDEX index_name ( column1, column2, column3 )
先自我介绍一下,小编13年上师交大毕业,曾经在小公司待过,去过华为OPPO等大厂,18年进入阿里,直到现在。深知大多数初中级java工程师,想要升技能,往往是需要自己摸索成长或是报班学习,但对于培训机构动则近万元的学费,着实压力不小。自己不成体系的自学效率很低又漫长,而且容易碰到天花板技术停止不前。因此我收集了一份《java开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担。添加下方名片,即可获取全套学习资料哦
边栏推荐
- 银行案例|Zabbix跨版本升级指南,4.2-6.0不香吗?
- 小贝拉机器人是朋友_普渡科技召开新品发布会,新一代送餐机器人“贝拉”温暖登场...
- C#的DataTable帮助类
- TCP million concurrent server optimization parameters
- 【R语言】线性混合模型进行重复测量设计分析
- 04 flink 集群搭建
- Xingtu has been short of disruptive products?Will this M38T from the Qingdao factory be a breakthrough?
- Ali's official Redis development specification
- 统信软件、龙芯中科等四家企业共同发布《数字办公安全创新方案》
- C#Excel帮助类
猜你喜欢

统信软件、龙芯中科等四家企业共同发布《数字办公安全创新方案》

TCP million concurrent server optimization parameters

星途一直缺颠覆性产品?青岛工厂这款M38T,会是个突破点?

吴恩达机器学习课后习题——kmeans

Daily Yuxian Big Defeat

ROS2系列知识(7):用rqt_console查看日志logs

How can become a good architect necessary skills: painting for all the people praise the system architecture diagram?What is the secret?Quick to open this article and have a look!.

Sftp中文件名乱码

RecSys'22|CARCA: Cross-Attention-Aware Context and Attribute Recommendations

Live tonight!
随机推荐
hcip第九天
2022年深圳市临床医学研究中心申请指南
酷逼了 Pathetic Dog 第 304 场周赛
棕榈油罐区数字化转型
[Dark Horse Morning Post] Hu Jun's endorsement of Wukong's financial management is suspected of fraud, which is suspected to involve 39 billion yuan; Fuling mustard responded that mustard ate toenails
我在启牛开户安全吗?谁能告诉我开不靠谱?
数字化采购管理系统开发:精细化采购业务流程管理,赋能企业实现“阳光采购”
网上开户佣金万一靠谱吗,网上开户安全吗
04 flink 集群搭建
08 Spark cluster construction
好家伙,公司服务器直接热崩掉了!
11 一发布就发布一系列系列
DataTable Helper Class for C#
Winform的消息提示框帮助类
千万级乘客排队系统重构&压测方案总结篇
UI helper class for Winform - some components will use DevExpress components
开发工具:第五章:使用idea生成实体类
C#的DateTime帮助类
Xingtu has been short of disruptive products?Will this M38T from the Qingdao factory be a breakthrough?
Vulnhub target drone: HARRYPOTTER_ NAGINI