CONTAINS, phrases and keywords
- From: "ddaiker" <ddaiker@xxxxxxxxx>
- Date: 8 Jan 2007 13:33:19 -0800
I'm getting some results from a CONTAINS query that I find odd. Here
is MyTable:
ID TheText
------------------------
1 two AND three
2 two three
and here is the query that I find odd:
SELECT * FROM MyTable WHERE CONTAINS(*, '"two OR three"')
that's a single quote followed by a double quote and then the reverse
at the end:
It returns row 1 but not row 2 in the results.
The only way I can explain why row 1 is being returned is if SQL is
throwing out both the AND in the data and the OR in the query. But if
that is the case why isn't row 2 being returned?
Anybody have any idea what's going on?
.
- Follow-Ups:
- Re: CONTAINS, phrases and keywords
- From: Simon Sabin
- Re: CONTAINS, phrases and keywords
- Prev by Date: Re: using AND accross multiple fields
- Next by Date: Re: CONTAINS, phrases and keywords
- Previous by thread: using AND accross multiple fields
- Next by thread: Re: CONTAINS, phrases and keywords
- Index(es):
Relevant Pages
|