发明授权
US06996557B1 Method of optimizing SQL queries where a predicate matches nullable operands
有权
优化SQL查询的方法,其中谓词与可空操作数匹配
- 专利标题: Method of optimizing SQL queries where a predicate matches nullable operands
- 专利标题(中): 优化SQL查询的方法,其中谓词与可空操作数匹配
-
申请号: US09504086申请日: 2000-02-15
-
公开(公告)号: US06996557B1公开(公告)日: 2006-02-07
- 发明人: Ting Yu Leung , Tuong Chanh Truong
- 申请人: Ting Yu Leung , Tuong Chanh Truong
- 申请人地址: US NY Armonk
- 专利权人: International Business Machines Corporation
- 当前专利权人: International Business Machines Corporation
- 当前专利权人地址: US NY Armonk
- 主分类号: G06F7/00
- IPC分类号: G06F7/00
摘要:
An optimization technique for SQL queries, a program storage device storing the optimization program, and an apparatus for optimizing a query is provided. A query is analyzed to determine whether it includes a predicate for matching nullable operands and, if so, it is transformed to return TRUE when all operands are NULLs. If the DBMS supports this new function, the predicate is marked. If not, the predicate is re-written into a CASE expression having two SELECT clauses. The query is then executed in the computer to efficiently retrieve data from the relational database.
信息查询