About prefix search in SQL Server full-text search -


citys table:

id   cityname 1    america city china 2    china city  america 

when use

select *  dbo.citys  cityname like'america%`  

which correct record!

but use

select * dbo.citys contains (cityname, ' "america*" ' ) 

which 2 rows !

so, how prefix query same like 'prefix%' in fts?


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -