发明授权
US06996557B1 Method of optimizing SQL queries where a predicate matches nullable operands 有权
优化SQL查询的方法,其中谓词与可空操作数匹配

Method of optimizing SQL queries where a predicate matches nullable operands
摘要:
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.
信息查询
0/0