首页 | 本学科首页   官方微博 | 高级检索  
     检索      

SQL的查询速度优化方法
引用本文:何满辉,温廷新,曲晓华.SQL的查询速度优化方法[J].辽宁工程技术大学学报(自然科学版),2003,22(2):246-248.
作者姓名:何满辉  温廷新  曲晓华
作者单位:1. 辽宁工程技术大学,教务处,辽宁,阜新,123000
2. 辽宁大学,外语学院,辽宁,辽阳,111000
摘    要:数据库查询是关系数据模型中关系操作的重要组成部分,而查询速度的快慢是系统是否优化的一个重要指标,也是当前网络数据库应用中所存在的瓶颈问题之一。本文从与数据库查询相关的索引、连接、Where子句等因素入手,结合实例分析了各因素对查询速度的影响,总结出根据表的不同情况选择聚簇索引或非聚簇索引对查询速度有明显影响:在组合索引中,使用频率高的字段应设置为前导列;建立充分的连接、优化Where子句对SQL的查询速度也有明显的提高。

关 键 词:数据库查询  关系数据模型  SQL  查询速度  优化方法  聚簇索引  连接  Where子句  组合索引
文章编号:1008-0562(2003)02-0246-03
修稿时间:2002年2月22日

Optimizing method for SQL query speed
HE Man-hui,WEN Ting-xin,QU Xiao-hua.Optimizing method for SQL query speed[J].Journal of Liaoning Technical University (Natural Science Edition),2003,22(2):246-248.
Authors:HE Man-hui  WEN Ting-xin  QU Xiao-hua
Institution:HE Man-hui1,WEN Ting-xin1,QU Xiao-hua2
Abstract:Database query is one important part of relation-operation in relation-data model, and fast or slow of query speed is one important index that shows if the system is optimizing, at present, which is also one bottle-neck question of query speed in the network-database application. The paper starts with the related factors about database query ,such as index, link, where-clause, and analyses the affection about query speed of these factors with examples, and concludes that choosing cluster or non-cluster according to deferent tables will effect query speed distinctly. In combinatorial index, the high-frequency field should be set as leading column; setting up full linkage,and optimizing where-clause will improve SQL query speed obviously .
Keywords:index  cluster index  link  where-clause  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号