sql中索引优化查询效率的总结

在数据库中,对字段创建索引能够大大提升查询速度。 建立一个测试表testtb,而且向表中插入30万条记录。 create table testtb(id int not null, name varchar(10) not null, age int not null);mysql 查看表中索引的方法: show index from testtb; show keys from testtb;w
相关文章
相关标签/搜索