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

基于List集合的多条件查询优化算法研究
引用本文:潘婷婷.基于List集合的多条件查询优化算法研究[J].长沙通信职业技术学院学报,2014(1):25-28.
作者姓名:潘婷婷
作者单位:汕头职业技术学院,广东汕头515078
摘    要:在数据库应用程序的研发过程中,经常涉及到对数据表的任意字段进行任意形式的组合查询,这样可以大大缩小查询范围,这就是多条件查询。文章首先对多条件查询的常用方法予以介绍,包括枚举法、递进法;最后笔者给出防止注入攻击的基于List集合的多条件查询优化算法。同时,为了提高性能,避免产生垃圾内存,SQL语句都使用StringBuilder类来创建字符串实例进行拼接,文中的代码均在VS2008平台下运行通过。

关 键 词:多条件查询  List集合  SQL  注入攻击  StringBuilder

Research on multi-conditional query optimization algorithms based on List Set
PAN Ting-ting.Research on multi-conditional query optimization algorithms based on List Set[J].Journal of Changsha Telecommunications and Technology Vocational,2014(1):25-28.
Authors:PAN Ting-ting
Affiliation:PAN Ting-ting (Shantou Polytechnic College, Shantou, Guangdong, China 515078)
Abstract:The development of database application programs often involves any form of combination query of any field of the data table, which can greatly reduce the query range. And that is called multi-conditional query. This paper first introduces the commonly used methods of multi-conditional query, including enumeration method and progressive method. Finally, the author gives the multi- conditional query optimization algorithm based on List Set to prevent injection attack. At the same time, in order to improve the performance and avoid producing waste memory, SQL sentence uses StringBuilder class to create a string instance and the codes in the text run through the VS2008 platform.
Keywords:multi-conditional query  List Set  SQL  injection attack  StringBuilder
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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