时间:2021-07-01 10:21:17 帮助过:5人阅读
1.插入语句:
create table test(
id int(4) not null auto_increment,
name char(20) not null,
primary key(id)
);
insert into test (id,name) values(1,‘oldboy‘)
select *from test;
字符类型的查询要带引号: select *from test where name=‘oldboy‘;
4.查询语句的执行计划:explain,如下,快了整整5倍
创建索引:create index index_name on test(name);
五、linux-mysql 下mysql的管理(二)
标签:table create 索引 执行计划 ima test code creat 类型