索引到底有什么用,听说能提高查询效率?
select id,uname,passwd from user;
如果我在uname字段建立了普通索引,那么经过怎样的查询后就能提高速度;
请好好讲讲!
拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...
Indexes are generally used in where or table association conditions to improve query efficiency. If you simply select username from user, it will scan the entire table.
Indexes are generally used in where or table association conditions to improve query efficiency. If you simply select username from user, it will scan the entire table.