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

正则表达式在数据库查询中的应用
引用本文:李旻,陈和平.正则表达式在数据库查询中的应用[J].计算机工程与设计,2006,27(12):2303-2305.
作者姓名:李旻  陈和平
作者单位:武汉科技大学,信息科学与工程学院,湖北,武汉,430081
摘    要:SQL语句在数据库查询中具有非常重要的地位,但是标准的SQL语句在复杂的数据库查询中却存在着诸多不足。而正则表达式有着强大的查询功能,通过对正则表达式特殊字符以及数据库查询语言中谓词的分析,提出了将正则表达式运用于数据库查询当中的新查询方法,并对该方法在实际查询应用当中会遇到的几个普遍问题进行了探讨。从而证明该方法不仅可以降低查询语句的复杂程度而且还能简化对出错语句的修改工作。

关 键 词:正则表达式  数据库查询  模式  模式匹配  特殊字符
文章编号:1000-7024(2006)12-2303-03
收稿时间:2005-04-18
修稿时间:2005-04-18

Application of regular expression in database query
LI Min,CHEN He-ping.Application of regular expression in database query[J].Computer Engineering and Design,2006,27(12):2303-2305.
Authors:LI Min  CHEN He-ping
Affiliation:College of Information Science and Engineering, Wuhan University of Science and Technology, Wuhan 430081, China
Abstract:SQL sentences play an important role in database query. But there are many shortages while doing some complicated queries by the traditional SQL sentences. While the regular expression has the strong power in query, the special characters of the regular expression and the predication in the database query are analyzed. Then a new query method basis on regular expression is presented, and some common problems in application are probed into. With the application of this method the complication of the query sentences is reduced and the modifying of the error SQL sentences is simplified.
Keywords:SQL
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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