0

I have a table with full text search enabled. But I can't get query the table using wildcard.

select * from products where contains(Description, 'Computer') returns rows with the word "Computer"

select * from products where contains(Description, 'Compute*') [replace "r" with "*"] returns nothing

What's going on?

animuson
  • 53,861
  • 28
  • 137
  • 147
SLfan
  • 61
  • 3

1 Answers1

1

Assuming SQL Server, add double quotes around the wildcarded expression like so

SELECT * 
FROM products 
WHERE contains(Description, '"Compute*"')
JohnFx
  • 34,542
  • 18
  • 104
  • 162