SQL Contains Query Returning Different Results

62 views Asked by At

I have a simple query

SELECT *
FROM QTests
WHERE CONTAINS(QTestId, '18 ~ 14 ~ 10')

Each time I run it it returns more results.

2

There are 2 answers

0
Haruto Sora On

Make sure that you are using FULLTEXT INDEX on QTestId Column , also this query will give you result based on '18 ~ 14 ~ 10' as a 1 variable and not 18 , 14 , 10 separately .

0
davy On

I did not realise that the full text index was actually still populating so it was returning what was populated so far.