我在用SQL Server 2008
DDL
CREATE TABLE [dbo].[t](
[words] [varchar](1000) NULL,
[id] [int] IDENTITY(1,1) NOT NULL
) ON [PRIMARY]
DML
insert into t(words)values('this is my laptop')
insert into t(words)values('this does not contains headphone')
SQL 查询
SELECT *
FROM
t as t
JOIN CONTAINSTABLE(t, words,'"headphone*"', 10) fulltextSearch
ON
t.Id = fulltextSearch.[KEY]
结果
没有找到记录
我期待一个记录。任何的想法?