The WHERE clause specifies which rows in the virtual table defined by the FROM clause make up the resulting rowset. The WHERE clause requires a search condition (that is, one or more predicates combined with AND, OR and NOT) that filters out rows for which the search condition is false.
WHERE Search_Conditions
Search_Conditions is composed of one or more predicates combined with AND, OR, and NOT. It specifies the conditions that rows must satisfy to belong to the resulting rowset. The rowset only includes rows in which all the predicates evaluate to TRUE.
When the search condition consists of statements enclosed in parentheses, expressions in parentheses are evaluated first. After the parenthetical expressions are evaluated, the following rules apply:
Note:
It is illegal to place NOT before content query predicates (CONTAINS and FREETEXT). The following statement is illegal:SELECT FileName FROM SCOPE() WHERE NOT CONTAINS ('search')>0The following statement is legal:
SELECT FileName FROM SCOPE() WHERE CONTAINS ('search')>0 AND NOT CONTAINS ('foo')>0
A predicate is an expression that asserts a fact about values.
For more information about the predicates you can use with the WHERE clause, see:
© 1997 by Microsoft Corporation. All rights reserved.
file: /Techref/language/asp/ix/ixsewhr.htm, 3KB, , updated: 1997/9/29 02:23, local time: 2024/11/27 09:04,
18.119.28.213:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.org/techref/language/asp/ix/ixsewhr.htm"> SQL Access to Index Server Data: Where Clause</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to massmind.org! |
.