Reputation: 371
I tried these two methods on Advantureworks and got different results.
select * from Person.[Address] where AddressLine1 like '%99%'
select * from Person.[Address] where contains(Address.AddressLine1,'"*99*"')
Any Idea?
Upvotes: 1
Views: 179
Reputation: 5414
Full text search and LIKE are two completely different things:
LIKE
works on strings of characters and matches exactly.CONTAINS
works on words and is somewhat fuzzy (how the strings are broken up into word parts depends on the language and can be customized even further if needed).Upvotes: 1