当前位置:网站首页>MYSQL中的查询
MYSQL中的查询
2022-06-12 08:09:00 【李大大大哥】
一、创建索引
create table student(
sid int primary key,
card_id varchar(20),
name varchar(20),
gender varchar(20),
age int,
birth date,
phone_num varchar(20),
score double,
index index_name(name) -- 给name列创建索引
);
select * from student where name ='张三';
2.直接创建:
create index index_gender on student(gender);
3.修改表结构添加索引
alter table student add index index_age(age);
– 查看索引:
边栏推荐
- (p25-p26) three details of non range based for loop and range based for loop
- 记录谷粒商城踩坑(一)
- Vision transformer | arXiv 2205 - TRT vit vision transformer for tensorrt
- Leetcode notes: Weekly contest 275
- vm虛擬機中使用NAT模式特別說明
- Understanding and analysis of state estimation and Kalman filter
- Group planning chapter I
- CONDA reports an error when creating a virtual environment, and the problem is solved
- Transformation from AC5 to AC6 (1) - remedy and preparation
- Procedure execution failed 1449 exception
猜你喜欢

MATLAB image processing - cosine noise removal in image (with code)

Windows10 configuration database

数据库基础——规范化、关系模式

MATLAB image processing -- image transformation correction second-order fitting

Discrete chapter I

Pytorch practice: predicting article reading based on pytorch

MES系统质量追溯功能,到底在追什么?

超全MES系统知识普及,必读此文

Explanation and explanation on the situation that the volume GPU util (GPU utilization) is very low and the memory ueage (memory occupation) is very high during the training of pytoch

Mathematical Essays: Notes on the angle between vectors in high dimensional space
随机推荐
Servlet advanced
MATLAB image processing - cosine noise removal in image (with code)
Vision Transformer | CVPR 2022 - Vision Transformer with Deformable Attention
Detailed explanation of window refresh function in MFC
Derivation of Poisson distribution
Learning notes (1): live broadcast by Dr. Lu Qi - face up to challenges and grasp entrepreneurial innovation opportunities - face up to challenges and grasp entrepreneurial innovation opportunities -1
Leetcode notes: Weekly contest 277
Fundamentals of Mathematics - Taylor Theorem
MYSQL中的调用存储过程,变量的定义,
Procedure execution failed 1449 exception
Face recognition using BP neural network of NNET in R language
FPGA implementation of right and left flipping of 720p image
Database connection pool and dbutils tool
Uni app screenshot with canvas and share friends
CMAKE 里PRIVATE、PUBLIC、INTERFACE属性示例详解
(P21-P24)统一的数据初始化方式:列表初始化、使用初始化列表初始化非聚合类型的对象、initializer_lisy模板类的使用
Transformation from AC5 to AC6 (1) - remedy and preparation
Architecture and performance analysis of convolutional neural network
visual studio2019的asp.net项目添加日志功能
Discrete chapter I